Class: Unparser::Either
- Inherits:
-
Object
- Object
- Unparser::Either
- Includes:
- Adamantium, RequireBlock
- Defined in:
- lib/unparser/either.rb
Overview
RequireBLock
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.