Class: RSpec::Mocks::StubChain

Inherits:
MessageChain show all
Defined in:
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

+ (Object) stub_chain_on(object, *chain, &blk)



80
81
82
# File 'lib/rspec/mocks/message_chain.rb', line 80

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