Class: Resultify::Result

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ret_val, err) ⇒ Result

Returns a new instance of Result.



12
13
14
15
# File 'lib/resultify.rb', line 12

def initialize(ret_val, err)
  @value = ret_val
  @err = err
end

Instance Attribute Details

#error_handlerObject

Returns the value of attribute error_handler.



9
10
11
# File 'lib/resultify.rb', line 9

def error_handler
  @error_handler
end

#value_handlerObject

Returns the value of attribute value_handler.



10
11
12
# File 'lib/resultify.rb', line 10

def value_handler
  @value_handler
end