Class: Obligation::Dependent

Inherits:
Base
  • Object
show all
Defined in:
lib/obligation/impl.rb

Instance Method Summary collapse

Methods inherited from Base

#fulfilled?, #pending?, #reason, #rejected?, #state, #then, #value

Methods included from Obligation

create, #fulfilled?, on, #pending?, #rejected?, #then, #value

Constructor Details

#initialize(dependencies, &block) ⇒ Dependent

Returns a new instance of Dependent.



120
121
122
123
124
125
126
# File 'lib/obligation/impl.rb', line 120

def initialize(dependencies, &block)
  super()
  @dependencies = dependencies
  @block        = block
  @reason       = nil
  @result       = nil
end