class Coltrane::Commands::GetRepresentationNotes

Public Instance Methods

run(representation, notes) click to toggle source
# File lib/coltrane/commands/get_representation_notes.rb, line 4
def run(representation, notes)
  return notes if representation == 'Text'
  Object
    .const_get("Coltrane::Representation::#{representation}")
    .find_notes(notes)
end