Class: ExpectsChain::Mockers::Base
- Defined in:
- lib/expects_chain/mockers/base.rb
Instance Method Summary collapse
-
#initialize(obj) ⇒ Base
constructor
A new instance of Base.
- #with(args) ⇒ Object
Constructor Details
#initialize(obj) ⇒ Base
Returns a new instance of Base.
4 5 6 |
# File 'lib/expects_chain/mockers/base.rb', line 4 def initialize obj @object = obj end |
Instance Method Details
#with(args) ⇒ Object
8 9 10 11 |
# File 'lib/expects_chain/mockers/base.rb', line 8 def with args @object = @object.with(*args) self end |