Class: Musk::Formatter::Base
- Inherits:
-
Object
- Object
- Musk::Formatter::Base
- Defined in:
- lib/musk/formatter/base.rb
Instance Method Summary collapse
-
#initialize(tracks) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(tracks) ⇒ Base
Returns a new instance of Base.
4 5 6 7 |
# File 'lib/musk/formatter/base.rb', line 4 def initialize(tracks) @tracks = tracks.map { |t| Musk::Decorator::PrintableTrack.new(t) } @fields = [:path, :title, :position, :artist, :release, :genre, :year, :comment] end |