Class: Mocha::SingleReturnValue

Inherits:
Object
  • Object
show all
Defined in:
lib/mocha/single_return_value.rb

Instance Method Summary collapse

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

#evaluateObject


11
12
13
# File 'lib/mocha/single_return_value.rb', line 11

def evaluate
  @value
end