Represents an `and_call_original` implementation. @private
# File lib/rspec/mocks/message_expectation.rb, line 562 def initialize(method) @method = method end
# File lib/rspec/mocks/message_expectation.rb, line 568 def arity @method.arity end
# File lib/rspec/mocks/message_expectation.rb, line 588 def call(*args, &block) @method.call(*args, &block) end
# File lib/rspec/mocks/message_expectation.rb, line 572 def initial_action=(value) raise cannot_modify_further_error end
# File lib/rspec/mocks/message_expectation.rb, line 576 def inner_action=(value) raise cannot_modify_further_error end
# File lib/rspec/mocks/message_expectation.rb, line 584 def present? true end
# File lib/rspec/mocks/message_expectation.rb, line 580 def terminal_action=(value) raise cannot_modify_further_error end
# File lib/rspec/mocks/message_expectation.rb, line 594 def cannot_modify_further_error CannotModifyFurtherError.new "This method has already been configured " + "to call the original implementation, and cannot be modified further." end