Method: Cuprum::Operation#value

Defined in:
lib/cuprum/operation.rb

#valueObject

Returns the value of the most recent result, or nil if the operation has not been called.

Returns:

  • (Object)

    the value of the most recent result, or nil if the operation has not been called.



81
82
83
# File 'lib/cuprum/operation.rb', line 81

def value
  called? ? result.value : nil
end