Class: Reacto::LabeledTrackable

Inherits:
Trackable show all
Defined in:
lib/reacto/labeled_trackable.rb

Constant Summary

Constants inherited from Trackable

Trackable::TOPICS

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#labelObject (readonly)

Returns the value of attribute label.



5
6
7
# File 'lib/reacto/labeled_trackable.rb', line 5

def label
  @label
end