Class: RSpec::Mocks::Matchers::ExpectationCustomization Private
Do not use. This class is for internal use only.
Relationships & Source Files | |
Inherits: | Object |
Defined in: | rspec-mocks/lib/rspec/mocks/matchers/expectation_customization.rb |
Class Method Summary
- .new(method_name, args, block) ⇒ ExpectationCustomization constructor Internal use only
Instance Attribute Summary
- #block rw Internal use only
Instance Method Summary
- #playback_onto(expectation) Internal use only
Instance Attribute Details
#block (rw)
[ GitHub ]# File 'rspec-mocks/lib/rspec/mocks/matchers/expectation_customization.rb', line 6
attr_accessor :block
Instance Method Details
#playback_onto(expectation)
[ GitHub ]# File 'rspec-mocks/lib/rspec/mocks/matchers/expectation_customization.rb', line 14
def playback_onto(expectation) expectation.__send__(@method_name, *@args, &@block) end