From: Glenn Jackman Date: 2009-07-18T03:45:06+09:00 Subject: Re: trouble with puts At 2009-07-17 01:41PM, "Venkat Akkineni" wrote: > Hi Guys > > Well to avoid posting the code(for no specific reason), I have posted a > replica of what I was trying to do. Anyhow here is the code. > > class Test > @i > @x > @strFile You probably want to initialize those variables: @i = nil @x = nil @strFile = nil Did you want them to be class variables? As it is, they are instance variables of the object Test. If you want them to be instance variables, define them in the initialize method. > def initialize [...] > @x = XmlEngine.new [...] > > > XMLEngine -> src -> XmlEngine.rb > > -> testing -> Test.rb > > As you can see Test.rb inside testing folder is calling the XmlEngine.rb > inside src folder. Understanding the above error, it is clear that the > interpreter cannot find the XmlEngine.rb. How would I go about showing > Test.rb the location of XmlEngine.rb You want: require '../src/XmlEngine' -- Glenn Jackman Write a wise saying and your name will live forever. -- Anonymous