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-1.2 lib/sup/modes/help_mode.rb
sup-1.1 lib/sup/modes/help_mode.rb
sup-1.0 lib/sup/modes/help_mode.rb
sup-0.23 lib/sup/modes/help_mode.rb
sup-0.22.1 lib/sup/modes/help_mode.rb
sup-0.22.0 lib/sup/modes/help_mode.rb
sup-0.21.0 lib/sup/modes/help_mode.rb
sup-0.20.0 lib/sup/modes/help_mode.rb
sup-0.19.0 lib/sup/modes/help_mode.rb
sup-0.18.0 lib/sup/modes/help_mode.rb
sup-0.17.0 lib/sup/modes/help_mode.rb
sup-0.16.0 lib/sup/modes/help_mode.rb
sup-0.15.4 lib/sup/modes/help_mode.rb
sup-0.15.3 lib/sup/modes/help_mode.rb
sup-0.15.2 lib/sup/modes/help_mode.rb
sup-0.15.1 lib/sup/modes/help_mode.rb
sup-0.15.0 lib/sup/modes/help_mode.rb
sup-0.14.1.1 lib/sup/modes/help_mode.rb
sup-0.13.2.1 lib/sup/modes/help_mode.rb
sup-0.14.1 lib/sup/modes/help_mode.rb