Sha256: ae75daf8c442018604d728157291631a8ab4cc8653bf972fc16b0db1c84f463b
Contents?: true
Size: 331 Bytes
Versions: 3
Compression:
Stored size: 331 Bytes
Contents
module Coltrane module Cli class Text < Representation def render case @flavor when :marks, :notes, :degrees then @notes.pretty_names.join(' ') when :intervals then @notes.map {|n| (@notes.first - n).name}.join(' ') else raise WrongFlavorError.new end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
coltrane-1.0.11 | lib/cli/text.rb |
coltrane-1.0.1 | lib/cli/text.rb |
coltrane-1.0.0 | lib/cli/text.rb |