Class: Andromeda::Plan
- Inherits:
-
Impl::ProtoPlan
- Object
- Impl::ConnectorBase
- Impl::ProtoPlan
- Andromeda::Plan
- Defined in:
- lib/andromeda/plan.rb,
lib/andromeda/sugar.rb
Direct Known Subclasses
Cmd::Parser, Kit::Block, Kit::FileReader, Kit::SinglePlan, Kit::Targeting, Kit::Tee, Sync::Bracket, Sync::Sync
Instance Attribute Summary collapse
-
#error_level ⇒ Object
Returns the value of attribute error_level.
-
#log ⇒ Object
Returns the value of attribute log.
-
#marker ⇒ Object
Returns the value of attribute marker.
-
#nick ⇒ Object
Returns the value of attribute nick.
-
#trace_enter ⇒ Object
Returns the value of attribute trace_enter.
-
#trace_exit ⇒ Object
Returns the value of attribute trace_exit.
Attributes inherited from Impl::ProtoPlan
Instance Method Summary collapse
-
#initialize(config = {}) ⇒ Plan
constructor
A new instance of Plan.
- #initialize_copy(other) ⇒ Object
- #on_enter(key, val) ⇒ Object
- #pool ⇒ Object
- #tap {|_self| ... } ⇒ Object
- #to_short_s ⇒ Object
Methods inherited from Impl::ProtoPlan
#>>, #current_name, #current_scope, #data_key, #data_tag, #data_val, #dest, #entry, #init_guide, #key_label, #key_spot, #map_data, #mute, name_spot, #post_data, #post_to, #public_spot, #selects?, #signal_name?, signal_names, #signal_names, signal_spot, spot_attr, #spot_attr_name?, spot_attr_names, #spot_attr_names, spot_meth, #spot_meth_name?, #spot_meth_names, spot_meth_names, #spot_name?, #spot_names, spot_names, #tags, #via
Methods included from Impl::To_S
Methods inherited from Impl::ConnectorBase
Constructor Details
#initialize(config = {}) ⇒ Plan
Returns a new instance of Plan.
20 21 22 23 24 25 |
# File 'lib/andromeda/plan.rb', line 20 def initialize(config = {}) super config @trace_enter ||= init_trace_hash :enter @trace_exit ||= init_trace_hash :emit @error_level ||= :error end |
Instance Attribute Details
#error_level ⇒ Object
Returns the value of attribute error_level.
14 15 16 |
# File 'lib/andromeda/plan.rb', line 14 def error_level @error_level end |
#log ⇒ Object
Returns the value of attribute log.
10 11 12 |
# File 'lib/andromeda/plan.rb', line 10 def log @log end |
#marker ⇒ Object
Returns the value of attribute marker.
11 12 13 |
# File 'lib/andromeda/plan.rb', line 11 def marker @marker end |
#nick ⇒ Object
Returns the value of attribute nick.
12 13 14 |
# File 'lib/andromeda/plan.rb', line 12 def nick @nick end |
#trace_enter ⇒ Object
Returns the value of attribute trace_enter.
16 17 18 |
# File 'lib/andromeda/plan.rb', line 16 def trace_enter @trace_enter end |
#trace_exit ⇒ Object
Returns the value of attribute trace_exit.
17 18 19 |
# File 'lib/andromeda/plan.rb', line 17 def trace_exit @trace_exit end |
Instance Method Details
#initialize_copy(other) ⇒ Object
27 28 29 30 31 32 33 |
# File 'lib/andromeda/plan.rb', line 27 def initialize_copy(other) super other @trace_enter = other.trace_enter.identical_copy @trace_exit = other.trace_exit.identical_copy @error_level = other.error_level.identical_copy @nick = other.nick.identical_copy end |
#on_enter(key, val) ⇒ Object
40 41 42 43 |
# File 'lib/andromeda/plan.rb', line 40 def on_enter(key, val) exit_ = exit exit_ << val if exit_ end |
#pool ⇒ Object
4 |
# File 'lib/andromeda/sugar.rb', line 4 def pool ; guide.pool_track.pool rescue nil end |