Class: When::Resolver
- Inherits:
-
Object
- Object
- When::Resolver
- Defined in:
- lib/when.rb
Instance Method Summary collapse
-
#initialize(deferred) ⇒ Resolver
constructor
A new instance of Resolver.
- #reject(*args) ⇒ Object
- #resolve(*args) ⇒ Object
- #resolved? ⇒ Boolean
Constructor Details
#initialize(deferred) ⇒ Resolver
Returns a new instance of Resolver.
35 |
# File 'lib/when.rb', line 35 def initialize(deferred); @deferred = deferred; end |
Instance Method Details
#reject(*args) ⇒ Object
37 |
# File 'lib/when.rb', line 37 def reject(*args); @deferred.reject(*args); end |
#resolve(*args) ⇒ Object
36 |
# File 'lib/when.rb', line 36 def resolve(*args); @deferred.resolve(*args); end |
#resolved? ⇒ Boolean
38 |
# File 'lib/when.rb', line 38 def resolved?; @deferred.resolved; end |