class RSpec::Mocks::MessageExpectation

def and_throw(*args)

Returns:
  • (nil) - No further chaining is supported after this.

Overloads:
  • and_throw(symbol, object)
  • and_throw(symbol)
def and_throw(*args)
  raise_already_invoked_error_if_necessary(__method__)
  self.terminal_implementation_action = Proc.new { throw(*args) }
  nil
end