Represents an `and_call_original` implementation. @private
# File lib/rspec/mocks/message_expectation.rb, line 701 def initialize(method, block) @method = method @block = block end
# File lib/rspec/mocks/message_expectation.rb, line 728 def call(*args, &block) @block.call(@method, *args, &block) end
# File lib/rspec/mocks/message_expectation.rb, line 708 def initial_action=(_value) raise cannot_modify_further_error end
# File lib/rspec/mocks/message_expectation.rb, line 724 def inner_action true end
# File lib/rspec/mocks/message_expectation.rb, line 712 def inner_action=(_value) raise cannot_modify_further_error end
# File lib/rspec/mocks/message_expectation.rb, line 720 def present? true end
# File lib/rspec/mocks/message_expectation.rb, line 716 def terminal_action=(_value) raise cannot_modify_further_error end
# File lib/rspec/mocks/message_expectation.rb, line 734 def cannot_modify_further_error CannotModifyFurtherError.new "This method has already been configured " "to call the original implementation, and cannot be modified further." end