@pocheshire 

```
unkmas@unkmas-abak:~/pulscen$ irb
1.9.3p448 :001 > require 'nokogiri'
 => true 
1.9.3p448 :002 > 
1.9.3p448 :003 >   def analysis (url)
1.9.3p448 :004?>     doc =  Nokogiri::HTML(open(url)) 
1.9.3p448 :005?>     if doc == nil
1.9.3p448 :006?>         puts "Page is not available"
1.9.3p448 :007?>       else 
1.9.3p448 :008 >           puts doc.css("title").text != nil ? doc.css("title").text : "Title not found"
1.9.3p448 :009?>       end
1.9.3p448 :010?>   end
 => nil 
1.9.3p448 :011 > analysis('www.ru')
Errno::ENOENT: No such file or directory - www.ru
	from (irb):4:in `initialize'
	from (irb):4:in `open'
	from (irb):4:in `analysis'
	from (irb):11
	from /home/unkmas/.rvm/rubies/ruby-1.9.3-p448/bin/irb:13:in `<main>'
1.9.3p448 :012 > 
```