From: "HelloTree, Inc." Date: 2002-10-16T12:13:24+09:00 Subject: quick question Why does this not work in mod_ruby? $DEBUG = true class Object def myLoad (pathToFile) return load(pathToFile) if $DEBUG require pathToFile end end myLoad '/var/www/hidden/first.rb' It isn't finding 'myLoad', and so is generating a NameError. This works in normal Ruby, but not mod_ruby. Could someone explain to me why this is, and how I could just make a simple globally accessible method like this one? BTW, if I make it a class method of Object, then Object.myLoad works just fine. Thanks, Chris