lib/mutant/require_highjack.rb in mutant-0.8.0 vs lib/mutant/require_highjack.rb in mutant-0.8.1
- old
+ new
@@ -9,10 +9,9 @@
#
# @return [#call]
# the original implementation on singleton
#
# @api private
- #
def self.call(target, callback)
target.method(:require).tap do
target.module_eval do
define_method(:require, &callback)
public :require