From: Venkat Akkineni Date: 2009-07-18T02:41:44+09:00 Subject: Re: trouble with puts 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 def initialize #puts "asdfasdfa" #puts ARGV[0] @x = XmlEngine.new @x.configueLog4r(nil) testIt end def testIt puts "testIt" if ARGV.length < 1 # XmlEngine.log4rXmlEngine.error() end end end >You need to require the file for irb to see it. Try issuing the >following >command: >require 'something' This actually solved the problem to the extent that the interpreter can now see the Test.rb class. But while I have your attention let me ask one more question. >require Test >x = Test.new Here is the output when I run the above command >C:/Users/venkat/Documents/Ruby Projects/XMLEngine/testing/Test.rb:12:in >`initialize': uninitialized constant Test::XmlEngine (NameError) > from C:/Users/venkat/Documents/Ruby >Projects/XMLEngine/testing/Test.rb:32:in `new' > from C:/Users/venkat/Documents/Ruby >Projects/XMLEngine/testing/Test.rb:32 I have to tell you the project file structure. > 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 Thanks Venkat Thanks Venkat -- Posted via http://www.ruby-forum.com/.