class RSpec::Mocks::AndWrapOriginalImplementation
@private
Represents an ‘and_call_original` implementation.
def call(*args, &block)
def call(*args, &block) @block.call(@method, *args, &block) end
def cannot_modify_further_error
def cannot_modify_further_error CannotModifyFurtherError.new "This method has already been configured " \ "to call the original implementation, and cannot be modified further." end
def initial_action=(_value)
def initial_action=(_value) raise cannot_modify_further_error end
def initialize(method, block)
def initialize(method, block) @method = method @block = block end
def inner_action
def inner_action true end
def inner_action=(_value)
def inner_action=(_value) raise cannot_modify_further_error end
def present?
def present? true end
def terminal_action=(_value)
def terminal_action=(_value) raise cannot_modify_further_error end