class RSpec::Mocks::AndCallOriginalImplementation
@private
Represents an ‘and_call_original` implementation.
def call(*args, &block)
def call(*args, &block) @method.call(*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)
def initialize(method) @method = method 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