From: Stefan Rusterholz Date: 2007-08-12T20:48:15+09:00 Subject: Re: NameError - Scruffy and Gruff - Logan Capaldo wrote: > On 8/12/07, Ams Lone wrote: >> => 0) >> `gem_original_require' >> from d:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in >> `require' >> from Scruffy.rb:2 >> >Exit code: 1 > > > Don't name your script scruffy.rb. Ruby will always look in the current > directory first for files to require. You are requiring your own script > file > by accident. :) Actually it won't. "." is in $: the last entry. Regards Stefan -- Posted via http://www.ruby-forum.com/.