Class: Obligation::Dependent
Instance Method Summary collapse
-
#initialize(dependencies, &block) ⇒ Dependent
constructor
A new instance of Dependent.
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 |