pedrozath/coltrane

View on GitHub
lib/coltrane/commands/get_representation_notes.rb

Summary

Maintainability
A
0 mins
Test Coverage
D
66%
module Coltrane
  module Commands
    class GetRepresentationNotes < Command
      def run(representation, notes)
        return notes if representation == 'Text'
        Object
          .const_get("Coltrane::Representation::#{representation}")
          .find_notes(notes)
      end
    end
  end
end