I'm testing this small Ruby program:
require 'net/http'
url = URI.parse('http://www.rubyinside.com/')
response = Net::HTTP.start(url.host, url.port) do |http|
http.get(url.path)
end
content = response.body
And I don't understand why URI.parse doesn't have the prefix Net:: and Net::HTTP.start have it.
What does Net:: means?