Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/rsubstitute.rb
Instance Method Summary collapse
Instance Method Details
#returns(value) ⇒ Object
18 19 20 21 22 |
# File 'lib/rsubstitute.rb', line 18 def returns(value) sub = self.instance_variable_get(:@substitute) raise "Not from a substitute" if sub.nil? sub.returns(value) end |