0
module urlfetch
class fetch
def initialize(url)
@url = url
analyze!
end
#extra methods goes here
end
end
模块我尝试这样
response = urlfetch::fetch("http://google.com")
puts response
,但我发现错误,如undefined method fetch