class Meshchat::Ui::Command::Help

Public Class Methods

description() click to toggle source
# File lib/meshchat/ui/command/help.rb, line 6
def self.description
  'displays this help message'
end

Public Instance Methods

handle() click to toggle source
# File lib/meshchat/ui/command/help.rb, line 10
def handle
  Meshchat::Ui::Command::COMMAND_MAP.each do |key, klass|
    if klass.respond_to?(:description)
      line = '/%-18s %s' % [key, klass.description]
      Display.info line
    end
  end
end