Parent

Methods

Class/Module Index [+]

Quicksearch

RSpec::Mocks::Implementation

Represents a configured implementation. Takes into account any number of sub-implementations. @private

Attributes

initial_action[RW]
inner_action[RW]
terminal_action[RW]

Public Instance Methods

call(*args, &block) click to toggle source
# File lib/rspec/mocks/message_expectation.rb, line 513
def call(*args, &block)
  actions.map do |action|
    action.arity.zero? ? action.call(&block) : action.call(*args, &block)
  end.last
end
present?() click to toggle source
# File lib/rspec/mocks/message_expectation.rb, line 519
def present?
  actions.any?
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.