Class: Musk::TrackLoader

Inherits:
Object
  • Object
show all
Defined in:
lib/musk/track_loader.rb

Class Method Summary collapse

Instance Method Summary collapse

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