module Webern::Formatters

Public Class Methods

formatter(format) click to toggle source
# File lib/webern/formatters.rb, line 3
def self.formatter(format)
  case format.to_sym
  when :pdf then PdfFormatter
  when :text then TextFormatter
  when :lilypond then LilypondFormatter
  else raise "cannot find formatter for format #{format}"
  end
end