Class: Nutella::Help
Instance Method Summary collapse
Instance Method Details
#run(args = nil) ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/core/commands/help.rb', line 8 def run(args=nil) ='' Dir["#{File.dirname(__FILE__)}/*.rb"].each do |file| += "#{File.basename(file, File.extname(file))}\t\t" += Object::const_get("Nutella::#{File.basename(file, File.extname(file)).capitalize}").description += "\n" end console.info , 200 end |