From: "Vic P.h." Date: 2009-10-28T03:32:18+09:00 Subject: Scope Missunderstanding 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 -- Posted via http://www.ruby-forum.com/.