bigdir/lib/better_errors/spec/without_binding_of_caller.rb

10 lines
204 B
Ruby

module Kernel
alias_method :require_with_binding_of_caller, :require
def require(feature)
raise LoadError if feature == "binding_of_caller"
require_with_binding_of_caller(feature)
end
end