class Concurrent::Maybe
def initialize(just, nothing)
-
(Maybe)
- The new `Maybe`.
Parameters:
-
nothing
(Exception, Object
) -- The exception when `Nothing` else `NONE`. -
just
(Object
) -- The value when `Just` else `NONE`.
def initialize(just, nothing) @just = just @nothing = nothing end