From: Glenn Jackman Date: 2009-07-18T05:35:06+09:00 Subject: Re: trouble with puts At 2009-07-17 04:08PM, "Venkat Akkineni" wrote: > case 2: > > >require "C:/Users/venkat/Documents/Ruby Projects/XMLEngine/src/XmlEngine" > > output > > >C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in >`gem_original_require': C:/Users/venkat/Documents/Ruby >Projects/XMLEngine/src/XmlEngine.rb:42: syntax error, unexpected kDO, expecting >kEND (SyntaxError) > > do > > ^ > > from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in >`require' > > from >C:/Users/venkat/Documents/Projects/RuBravo/XMLEngine/test/XmlEngineTest.rb:4 So, this one found the XmlEngine.rb file, but that file has a syntax error (missing "end"). Fix that and you should be OK. You could also try: $: << 'C:/Users/venkat/Documents/Ruby Projects/XMLEngine' require 'src/XmlEngine' where $: is the load path to search for 'require'd files -- Glenn Jackman Write a wise saying and your name will live forever. -- Anonymous