Class: Gracefully::Unresolved
- Inherits:
-
Object
- Object
- Gracefully::Unresolved
- Defined in:
- lib/gracefully/try.rb
Instance Method Summary collapse
- #get ⇒ Object
-
#initialize(&block) ⇒ Unresolved
constructor
A new instance of Unresolved.
- #or_else(other) ⇒ Object
- #resolve ⇒ Object
Constructor Details
#initialize(&block) ⇒ Unresolved
Returns a new instance of Unresolved.
9 10 11 |
# File 'lib/gracefully/try.rb', line 9 def initialize(&block) @block = block end |
Instance Method Details
#get ⇒ Object
25 26 27 |
# File 'lib/gracefully/try.rb', line 25 def get resolve.get end |
#or_else(other) ⇒ Object
21 22 23 |
# File 'lib/gracefully/try.rb', line 21 def or_else(other) resolve.or_else other end |