Class: MPrelude::Either
- Inherits:
-
Object
- Object
- MPrelude::Either
- Includes:
- AbstractType, Adamantium::Flat, RequireBlock
- Defined in:
- lib/mprelude.rb
Overview
Maybe
Defined Under Namespace
Class Method Summary collapse
-
.wrap_error(*exceptions) ⇒ Either<Exception, Object>
Execute block and wrap error in left.
Instance Method Summary collapse
-
#left? ⇒ Boolean
Test for left constructor.
-
#right? ⇒ Boolean
Test for right constructor.