Method: Fum::CommandManager::ClassMethods#command

Defined in:
lib/fum/command_manager.rb

#command(name, opts = {}) ⇒ Object



8
9
10
11
12
# File 'lib/fum/command_manager.rb', line 8

def command(name, opts={})
  require "fum/commands/#{name}"
  class_name = name.to_s.capitalize
  @@commands_map[name] = Fum::Commands::const_get(class_name)
end