class Success(T)
- Success(T)
- Reference
- Object
Defined in:
try.crConstructors
Instance Method Summary
-
#==(other : self)
Returns
true
if this reference is the same as other. - #err : Exception
- #err? : Exception | Nil
- #failed : Failure(T)
- #failure? : Bool
- #flat_map(&block : T -> Failure(U) | Success(U)) : Failure(U) | Success(U) forall U
- #foreach(&block : T -> U) : Nil forall U
- #get : T
- #get? : T | Nil
- #map(&block : T -> U) : Failure(U) | Success(U) forall U
- #or(&block : Exception -> U) : Failure(T | U) | Success(T | U) forall U
- #recover(&block : Exception -> T) : Failure(T) | Success(T)
- #success? : Bool
- #value
Constructor Detail
Instance Method Detail
def ==(other : self)
#
Description copied from class Reference
Returns true
if this reference is the same as other. Invokes same?
.