# File lib/mocha/any_instance_method.rb, line 48 def restore_original_method return if RUBY_V2_PLUS return unless @original_method && @original_method.owner == stubbee stubbee.send(:define_method, method, @original_method) Module.instance_method(@original_visibility).bind(stubbee).call(method) end