Module: CommandProc
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Methods included from ConfigReader
Class Method Details
.included(base) ⇒ Object
13 14 15 16 |
# File 'lib/command_proc.rb', line 13 def self.included(base) base.extend(ClassMethods) base.init_instances end |
Instance Method Details
#help(args) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/command_proc.rb', line 6 def help(args) puts "Avalable commands:" self.class.instance_methods(false).each{|method| puts " " + method.to_s } end |