On Nov 27, 2010, at 11:34 AM, Bob Hutchison wrote: > On 2010-11-27, at 7:48 AM, Urabe Shyouhei wrote: > >> Why don't you use require_relative which is a standard ruby feature? > > Is it? Yes. It was added in Ruby 1.9. > And it isn't documented on ruby-doc.org, so... Here's the documentation from the Pickaxe: Requires a library whose path is relative to the file containing the call. Thus, if the directory 1.9 /usr/local/mylib/bin contains the file myprog.rb and that program contains the following line: require_relative "../lib/mylib" then Ruby will look for mylib in /usr/local/mylib/lib. require_relative cannot be called interactively in irb.