Class: Manlycraft::Command
- Inherits:
-
Object
- Object
- Manlycraft::Command
show all
- Defined in:
- lib/manlycraft/command.rb
Defined Under Namespace
Classes: Base, Help, Init, Start, Stop
Class Method Summary
collapse
Class Method Details
.load ⇒ Object
2
3
4
5
6
|
# File 'lib/manlycraft/command.rb', line 2
def self.load
Dir[File.join(File.dirname(__FILE__), "command", "*.rb")].each do |file|
require file
end
end
|
.run(command, *args) ⇒ Object
8
9
10
11
|
# File 'lib/manlycraft/command.rb', line 8
def self.run(command, *args)
klass = self.const_get(command.capitalize).new(args)
klass.run
end
|