Class: Mocha::SingleReturnValue
- Defined in:
- lib/mocha/single_return_value.rb
Overview
:nodoc:
Instance Method Summary collapse
- #evaluate ⇒ Object
-
#initialize(value) ⇒ SingleReturnValue
constructor
A new instance of SingleReturnValue.
Constructor Details
#initialize(value) ⇒ SingleReturnValue
Returns a new instance of SingleReturnValue.
7 8 9 |
# File 'lib/mocha/single_return_value.rb', line 7 def initialize(value) @value = value end |
Instance Method Details
#evaluate ⇒ Object
11 12 13 |
# File 'lib/mocha/single_return_value.rb', line 11 def evaluate @value end |