module Tr3llo::View::Label::List
Public Instance Methods
render(labels)
click to toggle source
# File lib/3llo/view/label/list.rb, line 7 def render(labels) labels .map { |label| render_label(label) } .join("\n") end
Private Instance Methods
render_label(label)
click to toggle source
# File lib/3llo/view/label/list.rb, line 15 def render_label(label) "#{Utils.format_key_tag(label.id, label.shortcut)} #{Utils.paint("#" + label.name, label.color)}" end