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