Sha256: 5acb400684790f0236f75c50ad2b939809539a036cccbc4f3fb0896d94e787ba

Contents?: true

Size: 266 Bytes

Versions: 49

Compression:

Stored size: 266 Bytes

Contents

module Redwood

class HelpMode < TextMode
  def initialize mode, global_keymap
    title = "Help for #{mode.name}"
    super <<EOS
#{title}
#{'=' * title.length}

#{mode.help_text}
Global keybindings
------------------
#{global_keymap.help_text}
EOS
  end
end

end

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
sup-0.0.3 lib/sup/modes/help-mode.rb
sup-0.0.4 lib/sup/modes/help-mode.rb
sup-0.4 lib/sup/modes/help-mode.rb
sup-0.3 lib/sup/modes/help-mode.rb
sup-0.5 lib/sup/modes/help-mode.rb
sup-0.7 lib/sup/modes/help-mode.rb
sup-0.2 lib/sup/modes/help-mode.rb
sup-0.6 lib/sup/modes/help-mode.rb
sup-0.8 lib/sup/modes/help-mode.rb