Class: Lijab::Commands::Command

Inherits:
Object
  • Object
show all
Extended by:
CommandMixin
Defined in:
lib/lijab/commands.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from CommandMixin

define_meta

Class Method Details

.define(name, &block) ⇒ Object



39
40
41
42
43
# File 'lib/lijab/commands.rb', line 39

def self.define(name, &block)
   c = new
   c.instance_eval(&block)
   Commands::register(name.to_sym, c)
end

Instance Method Details

#completer(s) ⇒ Object



45
46
# File 'lib/lijab/commands.rb', line 45

def completer(s)
end

#run(args) ⇒ Object



48
49
# File 'lib/lijab/commands.rb', line 48

def run(args)
end