Class: Trackler::Tracks
- Inherits:
-
Object
- Object
- Trackler::Tracks
- Includes:
- Enumerable
- Defined in:
- lib/trackler/tracks.rb
Overview
Tracks is the collection of language tracks.
Instance Attribute Summary collapse
-
#root ⇒ Object
readonly
Returns the value of attribute root.
Instance Method Summary collapse
- #[](id) ⇒ Object
- #each ⇒ Object
-
#initialize(root) ⇒ Tracks
constructor
A new instance of Tracks.
Constructor Details
Instance Attribute Details
#root ⇒ Object (readonly)
Returns the value of attribute root.
6 7 8 |
# File 'lib/trackler/tracks.rb', line 6 def root @root end |
Instance Method Details
#[](id) ⇒ Object
17 18 19 |
# File 'lib/trackler/tracks.rb', line 17 def [](id) by_id[id] end |
#each ⇒ Object
11 12 13 14 15 |
# File 'lib/trackler/tracks.rb', line 11 def each all.each do |track| yield track end end |