class RSpec::Mocks::Implementation
Represents a configured implementation. Takes into account any number of sub-implementations. @private
Attributes
Public Instance Methods
Source
# File lib/rspec/mocks/message_expectation.rb, line 760 def call(*args, &block) actions.map do |action| action.call(*args, &block) end.last end
Source
# File lib/rspec/mocks/message_expectation.rb, line 767 def present? actions.any? end
Private Instance Methods
Source
# File lib/rspec/mocks/message_expectation.rb, line 773 def actions [initial_action, inner_action, terminal_action].compact end