- debug load() calls with DEBUG=require, too

This commit is contained in:
Jordan Sissel 2013-04-17 12:28:29 -07:00
parent f0196dbdc0
commit 487e8fe155

View file

@ -6,5 +6,12 @@ if $DEBUGLIST.include?("require")
puts "require(\"#{path}\")" puts "require(\"#{path}\")"
return require_debug(path) return require_debug(path)
end end
alias_method :load_debug, :load
def load(path)
puts "load(\"#{path}\")"
return load_debug(path)
end
end end
end end