class KafoWizards::HighLine::ButtonRenderer

Public Instance Methods

render_action(entry) click to toggle source
# File lib/kafo_wizards/highline/button_renderer.rb, line 9
def render_action(entry)
  entry.name
end
render_entry(entry) click to toggle source
# File lib/kafo_wizards/highline/button_renderer.rb, line 4
def render_entry(entry)
  color = entry.default? ? :green : :red
  "#{::HighLine.color(entry.label, color)}"
end