Module: Resonad::Mixin
- Included in:
- Resonad
- Defined in:
- lib/resonad.rb
Instance Method Summary collapse
Instance Method Details
#Failure(error = nil) ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/resonad.rb', line 14 def Failure(error=nil) if nil == error NIL_FAILURE else Failure.new(error) end end |
#Success(value = nil) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/resonad.rb', line 6 def Success(value=nil) if nil == value NIL_SUCCESS else Success.new(value) end end |