Class: RSpec::Mocks::Implementation
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-mocks-3.12.2/lib/rspec/mocks/message_expectation.rb
Overview
Represents a configured implementation. Takes into account any number of sub-implementations.
Other Constraints collapse
-
#initial_action ⇒ Object
Returns the value of attribute initial_action.
-
#inner_action ⇒ Object
Returns the value of attribute inner_action.
-
#terminal_action ⇒ Object
Returns the value of attribute terminal_action.
Other Constraints collapse
Instance Attribute Details
#initial_action ⇒ Object
Returns the value of attribute initial_action.
757 758 759 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-mocks-3.12.2/lib/rspec/mocks/message_expectation.rb', line 757 def initial_action @initial_action end |
#inner_action ⇒ Object
Returns the value of attribute inner_action.
757 758 759 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-mocks-3.12.2/lib/rspec/mocks/message_expectation.rb', line 757 def inner_action @inner_action end |
#terminal_action ⇒ Object
Returns the value of attribute terminal_action.
757 758 759 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-mocks-3.12.2/lib/rspec/mocks/message_expectation.rb', line 757 def terminal_action @terminal_action end |
Instance Method Details
#call(*args, &block) ⇒ Object
759 760 761 762 763 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-mocks-3.12.2/lib/rspec/mocks/message_expectation.rb', line 759 def call(*args, &block) actions.map do |action| action.call(*args, &block) end.last end |
#present? ⇒ Boolean
766 767 768 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-mocks-3.12.2/lib/rspec/mocks/message_expectation.rb', line 766 def present? actions.any? end |