Method: Redwood::Keymap#help_text
- Defined in:
- lib/sup/keymap.rb
#help_text(except_for = {}) ⇒ Object
122 123 124 125 126 |
# File 'lib/sup/keymap.rb', line 122 def help_text except_for={} lines = help_lines except_for llen = lines.max_of { |a, b| a.length } lines.map { |a, b| sprintf " %#{llen}s : %s", a, b }.join("\n") end |