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