2.0.0p0 :002 > url = 'http:/www.google.com'
=> "http:/www.google.com"
2.0.0p0 :004 > uri = URI.parse(url)
=> #<URI::HTTP:0x007f9ff15523f8 URL:http:/www.google.com>
2.0.0p0 :005 > uri.kind_of?(URI::HTTP)
=> true