class RSpec::Mocks::Matchers::Receive::Customization
Public Class Methods
new(method_name, args, block)
click to toggle source
# File lib/rspec/mocks/matchers/receive.rb, line 83 def initialize(method_name, args, block) @method_name = method_name @args = args @block = block end
Public Instance Methods
playback_onto(expectation)
click to toggle source
# File lib/rspec/mocks/matchers/receive.rb, line 89 def playback_onto(expectation) expectation.__send__(@method_name, *@args, &@block) end