Class: RSpec::Mocks::StubChain

Inherits:
MessageChain show all
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-mocks-3.12.2/lib/rspec/mocks/message_chain.rb

Instance Attribute Summary

Attributes inherited from MessageChain

#block, #chain, #object

Class Method Summary collapse

Methods inherited from MessageChain

#initialize, #setup_chain

Constructor Details

This class inherits a constructor from RSpec::Mocks::MessageChain

Class Method Details

.stub_chain_on(object, *chain, &blk) ⇒ Object



76
77
78
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-mocks-3.12.2/lib/rspec/mocks/message_chain.rb', line 76

def self.stub_chain_on(object, *chain, &blk)
  new(object, *chain, &blk).setup_chain
end