Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/mocha/shot/object.rb
Instance Method Summary collapse
- #__stubs__ ⇒ Object
- #stubs(symbol = nil) ⇒ Object (also: #expects)
Instance Method Details
#__stubs__ ⇒ Object
2 |
# File 'lib/mocha/shot/object.rb', line 2 alias_method :__stubs__, :stubs |
#stubs(symbol = nil) ⇒ Object Also known as: expects
4 5 6 7 |
# File 'lib/mocha/shot/object.rb', line 4 def stubs(symbol=nil) return __stubs__(symbol) if symbol Mocha::TerseObjectStub.new(self) end |