# File lib/ramaze/bin/runner.rb, line 116 def self.commands_info cmds = [] longest = Commands.map { |name, klass| name.to_s }.sort[0].size Commands.each do |name, klass| name = name.to_s desc = '' # Try to extract the command description if klass.respond_to?(:const_defined?) \ and klass.const_defined?(:Description) desc = klass.const_get(:Description) end # Align the description based on the length of the name while name.size <= longest do name += ' ' end cmds.push(["#{name} #{desc}"]) end return cmds end