Class: Delayer::Deferred::Chain::Trap

Inherits:
Base
  • Object
show all
Defined in:
lib/delayer/deferred/chain/trap.rb

Constant Summary

Constants included from Deferredable::NodeSequence

Deferredable::NodeSequence::AWAIT, Deferredable::NodeSequence::AWAIT_C, Deferredable::NodeSequence::BURST_OUT, Deferredable::NodeSequence::CALL_CHILD, Deferredable::NodeSequence::CONNECTED, Deferredable::NodeSequence::FRESH, Deferredable::NodeSequence::GENOCIDE, Deferredable::NodeSequence::GRAFT, Deferredable::NodeSequence::GRAFT_C, Deferredable::NodeSequence::PASS, Deferredable::NodeSequence::PASS_C, Deferredable::NodeSequence::RESERVED, Deferredable::NodeSequence::RESERVED_C, Deferredable::NodeSequence::ROTTEN, Deferredable::NodeSequence::RUN, Deferredable::NodeSequence::RUN_C, Deferredable::NodeSequence::SEQUENCE_LOCK, Deferredable::NodeSequence::STOP, Deferredable::NodeSequence::WAIT

Instance Attribute Summary

Attributes included from Deferredable::Chainable

#child

Instance Method Summary collapse

Methods inherited from Base

#activate, #initialize, #inspect, #node_name

Methods included from Deferredable::Chainable

#add_awaited, #add_child, #add_child_observer, #awaited, #cancel, #enter_pass, #exit_pass, #has_awaited?, #has_child?, #next, #reserve_activate, #trap

Methods included from Deferredable::NodeSequence

#activated?, #change_sequence, #on_sequence_changed, #sequence, #spoiled?

Methods included from Deferredable::Graph

#graph, #graph_child, #graph_draw, #graph_save

Methods included from Deferredable::Awaitable

#+@, #enter_await, #exit_await

Constructor Details

This class inherits a constructor from Delayer::Deferred::Chain::Base

Instance Method Details

#evaluate?(response) ⇒ Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/delayer/deferred/chain/trap.rb', line 6

def evaluate?(response)
  response.ng?
end