Class: Musk::Formatter::Pretty
- Inherits:
-
Base
- Object
- Base
- Musk::Formatter::Pretty
show all
- Defined in:
- lib/musk/formatter/pretty.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Base
#initialize
Class Method Details
.print(tracks) ⇒ Object
4
5
6
|
# File 'lib/musk/formatter/pretty.rb', line 4
def self.print(tracks)
new(tracks).print
end
|
Instance Method Details
#print ⇒ Object
8
9
10
|
# File 'lib/musk/formatter/pretty.rb', line 8
def print
puts @tracks.map { |t| printed(t) }.join("\n")
end
|