class Object

Constants

LILYPOND_LEGEND
LILYPOND_PREAMBLE

Public Instance Methods

format_lilypond_entry(info) click to toggle source
# File lib/lyp/cli.rb, line 24
def format_lilypond_entry(info)
  "#{lilypond_prefix(info)}#{info[:version]}#{lilypond_postfix(info)}"
end
lilypond_postfix(info) click to toggle source
# File lib/lyp/cli.rb, line 16
def lilypond_postfix(info)
  if info[:system]
    " (system)"
  else
    ""
  end
end
lilypond_prefix(info) click to toggle source
# File lib/lyp/cli.rb, line 4
def lilypond_prefix(info)
  if info[:current] && info[:default]
    "=* "
  elsif info[:current]
    "=> "
  elsif info[:default]
    " * "
  else
    "   "
  end
end