Class: When::Resolver

Inherits:
Object
  • Object
show all
Defined in:
lib/when.rb

Instance Method Summary collapse

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

Returns:

  • (Boolean)


38
# File 'lib/when.rb', line 38

def resolved?; @deferred.resolved; end