Sha256: 521e8124c97c62c0aaf090efe5927d34c2903756855bf829f8d1747119e57ffc
Contents?: true
Size: 517 Bytes
Versions: 2
Compression:
Stored size: 517 Bytes
Contents
require 'core/command' module Nutella class Help < Command @description = 'Displays what every command does and how to use it' def run(args=nil) message='' Dir["#{File.dirname(__FILE__)}/*.rb"].each do |file| message += "#{File.basename(file, File.extname(file))}\t\t" message += Object::const_get("Nutella::#{File.basename(file, File.extname(file)).capitalize}").description message += "\n" end console.info message, 200 end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nutella_framework-0.2.1 | lib/core/commands/help.rb |
nutella_framework-0.2.0 | lib/core/commands/help.rb |