Class: Hopscotch::ErrorValue

Inherits:
Struct
  • Object
show all
Defined in:
lib/hopscotch/error.rb

Overview

ErrorValue denotes an error.

data ReturnValue = ErrorValue value | value

In the context of Ruby and Workflows this means:

  • a value represents an error iff it is an ErrorValue
  • otherwise the value represents success

Instance Attribute Summary collapse

Instance Attribute Details

#value ⇒ Object

Returns the value of attribute value

Returns:

  • (Object) —

    the current value of value



12
13
14
# File 'lib/hopscotch/error.rb', line 12

def value
  @value
end