class Manlycraft::Command

Public Class Methods

load() click to toggle source
# 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) click to toggle source
# File lib/manlycraft/command.rb, line 8
def self.run(command, *args)
  klass = self.const_get(command.capitalize).new(args)
  klass.run
end