Sha256: ffdd1e0de01d05bc92a7a8e11fbad4938cb5c2aa9a6a990f8bb17e88a88eaa25

Contents?: true

Size: 411 Bytes

Versions: 4

Compression:

Stored size: 411 Bytes

Contents

module Tr3llo
  module View
    module Label
      module List
        extend self

        def render(labels)
          labels
            .map { |label| render_label(label) }
            .join("\n")
        end

        private

        def render_label(label)
          "#{Utils.format_key_tag(label.id, label.shortcut)} #{Utils.paint("#" + label.name, label.color)}"
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
3llo-1.3.1 lib/3llo/view/label/list.rb
3llo-1.3.1.pre.rc.0 lib/3llo/view/label/list.rb
3llo-1.2.0 lib/3llo/view/label/list.rb
3llo-1.1.0 lib/3llo/view/label/list.rb