class RSpec::Mocks::AndReturnImplementation
Experimental RBS support (using type sampling data from the type_fusion
project).
# sig/rspec/mocks/message_expectation.rbs class RSpec::Mocks::AndReturnImplementation def call: (*Array[] _args_to_ignore, ) -> false end
@private
Handles the implementation of an ‘and_return` implementation.
def call(*_args_to_ignore, &_block)
Experimental RBS support (using type sampling data from the type_fusion
project).
def call: (* _args_to_ignore, ) -> false
This signature was generated using 1 sample from 1 application.
def call(*_args_to_ignore, &_block) if @values_to_return.size > 1 @values_to_return.shift else @values_to_return.first end end
def initialize(values_to_return)
def initialize(values_to_return) @values_to_return = values_to_return end