Class: Musk::TrackLoader
- Inherits:
-
Object
- Object
- Musk::TrackLoader
- Defined in:
- lib/musk/track_loader.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(path) ⇒ TrackLoader
constructor
A new instance of TrackLoader.
- #load! ⇒ Object
Constructor Details
#initialize(path) ⇒ TrackLoader
Returns a new instance of TrackLoader.
9 10 11 |
# File 'lib/musk/track_loader.rb', line 9 def initialize(path) @path = path end |
Class Method Details
.load!(path) ⇒ Object
5 6 7 |
# File 'lib/musk/track_loader.rb', line 5 def self.load!(path) new(path).load! end |
Instance Method Details
#load! ⇒ Object
13 14 15 16 |
# File 'lib/musk/track_loader.rb', line 13 def load! verify_path! create_tracks end |