Sha256: 560aaca75940eae5fb2c940d6b2dced40f2914c691ead09d641891113505fcdd

Contents?: true

Size: 302 Bytes

Versions: 7

Compression:

Stored size: 302 Bytes

Contents

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
coltrane-4.1.2 lib/coltrane/commands/get_representation_notes.rb
coltrane-4.1.1 lib/coltrane/commands/get_representation_notes.rb
coltrane-4.1.0 lib/coltrane/commands/get_representation_notes.rb
coltrane-4.0.6 lib/coltrane/commands/get_representation_notes.rb
coltrane-4.0.5 lib/coltrane/commands/get_representation_notes.rb
coltrane-4.0.4 lib/coltrane/commands/get_representation_notes.rb
coltrane-4.0.3 lib/coltrane/commands/get_representation_notes.rb