Class: Reacto::LabeledTrackable
- Defined in:
- lib/reacto/labeled_trackable.rb
Constant Summary
Constants inherited from Trackable
Instance Attribute Summary collapse
-
#label ⇒ Object
readonly
Returns the value of attribute label.
Instance Method Summary collapse
-
#initialize(label, executor = nil, behaviour = NO_ACTION, &block) ⇒ LabeledTrackable
constructor
A new instance of LabeledTrackable.
Methods inherited from Trackable
#[], #act, #await, #buffer, #cache, close, combine, combine_last, combine_with, #concat, #delay, #depend_on, #diff, #do_track, #drop, #drop_errors, enumerable, error, #execute_on, #first, #flat_map, #flat_map_latest, #flatten, #inject, interval, #last, later, #lift, make, #map, #merge, never, #off, #on, #prepend, repeat, #select, #take, #throttle, #track, #track_on, #uniq, value, #wrap, zip
Constructor Details
#initialize(label, executor = nil, behaviour = NO_ACTION, &block) ⇒ LabeledTrackable
Returns a new instance of LabeledTrackable.
7 8 9 10 11 |
# File 'lib/reacto/labeled_trackable.rb', line 7 def initialize(label, executor = nil, behaviour = NO_ACTION, &block) super(behaviour, executor, &block) @label = label end |
Instance Attribute Details
#label ⇒ Object (readonly)
Returns the value of attribute label.
5 6 7 |
# File 'lib/reacto/labeled_trackable.rb', line 5 def label @label end |