I have a module like this
module urlfetch
class fetch
def initialize(url)
@url = url
analyze!
end
#extra methods goes here
end
end
I tried like this
response = urlfetch::fetch("http://google.com")
puts response
But i'm getting error like undefined method fetch