Class: Benelux::Track
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#rotated_timelines ⇒ Object
readonly
Returns the value of attribute rotated_timelines.
-
#thread_group ⇒ Object
readonly
Returns the value of attribute thread_group.
-
#timeline ⇒ Object
readonly
Returns the value of attribute timeline.
Instance Method Summary collapse
- #add_tags(args = Selectable::Tags.new) ⇒ Object
- #add_thread(t = Thread.current) ⇒ Object
-
#initialize(n, t) ⇒ Track
constructor
A new instance of Track.
- #remove_tags(*args) ⇒ Object
- #threads ⇒ Object
Constructor Details
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/benelux/track.rb', line 5 def name @name end |
#rotated_timelines ⇒ Object (readonly)
Returns the value of attribute rotated_timelines.
8 9 10 |
# File 'lib/benelux/track.rb', line 8 def rotated_timelines @rotated_timelines end |
#thread_group ⇒ Object (readonly)
Returns the value of attribute thread_group.
6 7 8 |
# File 'lib/benelux/track.rb', line 6 def thread_group @thread_group end |
#timeline ⇒ Object (readonly)
Returns the value of attribute timeline.
7 8 9 |
# File 'lib/benelux/track.rb', line 7 def timeline @timeline end |
Instance Method Details
#add_tags(args = Selectable::Tags.new) ⇒ Object
21 22 23 |
# File 'lib/benelux/track.rb', line 21 def (args=Selectable::Tags.new) timeline. args end |
#add_thread(t = Thread.current) ⇒ Object
14 15 16 17 |
# File 'lib/benelux/track.rb', line 14 def add_thread(t=Thread.current) @thgrp.add t t end |
#remove_tags(*args) ⇒ Object
24 25 26 |
# File 'lib/benelux/track.rb', line 24 def (*args) timeline. *args end |
#threads ⇒ Object
18 19 20 |
# File 'lib/benelux/track.rb', line 18 def threads @thgrp.list end |