Method: Monadic::Either#fetch
- Defined in:
- lib/monadic/either.rb
#fetch(default = @value) ⇒ Object Also known as: _
53 54 55 56 |
# File 'lib/monadic/either.rb', line 53 def fetch(default=@value) return default if failure? return @value end |