Class: Musk::Formatter::Base

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

Direct Known Subclasses

CSV, Pretty

Instance Method Summary collapse

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