V
Vic P.h.
i got a module x and then a class z and inside this class i do a
Net::HTTP call and it looks for it inside module x ... and i am
clueless...
i get uninitialized constant ModuleX::Net::HTTP
i am new to ruby... and i just dont know how the scope works...
or what i am doing wrong
i took a look at the soap module
and it dosent look like it does anything
different than what i am doing...
code>
require 'uri'
require 'net/http'
module ModuleX
class Parser
def self.getData(d)
htmldata = self.loadData(d)
end
private
def self.loadData(profile)
url=''
htmldata = Net::HTTP.get(URI.parse(url))
htmldata.to_s
end
end
end
i advance thanks for shading liggt
Net::HTTP call and it looks for it inside module x ... and i am
clueless...
i get uninitialized constant ModuleX::Net::HTTP
i am new to ruby... and i just dont know how the scope works...
or what i am doing wrong
i took a look at the soap module
and it dosent look like it does anything
different than what i am doing...
code>
require 'uri'
require 'net/http'
module ModuleX
class Parser
def self.getData(d)
htmldata = self.loadData(d)
end
private
def self.loadData(profile)
url=''
htmldata = Net::HTTP.get(URI.parse(url))
htmldata.to_s
end
end
end
i advance thanks for shading liggt