RequireBench: When do you use it?
RequireBench: When do you use it? Upgrading an old application, I encountered the following code.
# Uncomment the following monkey patch to debug "SystemStackError: stack level too deep" during boot up module Kernel def require_and_print(string) puts string require_original(string) end alias_method :require_original, :require alias_method :require, :require_and_print end This is what require_bench was written for. You don’t need to add hacks like this to your code anymore!
OK, but why is the gem better than the hack?