From: Ammar Ali Date: 2010-08-29T19:25:52+09:00 Subject: require from a method Hello, Are there any gotchas in requiring files from within a method? It seems to work, but I have a sinking feeling that I'm missing something here. def require_relative(start, path) require File.expand_path( File.join( File.dirname(start), path ) ) end require_relative __FILE__, %w{.. tests tester.rb} 1.upto(3) {|i| Tester.run i, "some", [3,6,9], :foo => :bar } Thanks, Ammar