Class: Monadt::Either::Left
- Inherits:
-
Object
- Object
- Monadt::Either::Left
- Defined in:
- lib/monadt/either.rb
Instance Method Summary collapse
Instance Method Details
#is_left? ⇒ Boolean
9 |
# File 'lib/monadt/either.rb', line 9 def is_left?() true end |
#is_right? ⇒ Boolean
10 |
# File 'lib/monadt/either.rb', line 10 def is_right?() false end |
#to_s ⇒ Object
11 |
# File 'lib/monadt/either.rb', line 11 def to_s() "Left(#{left})" end |