Module: Groonga::Command

Defined in:
lib/groonga/command/get.rb,
lib/groonga/command/base.rb,
lib/groonga/command/load.rb,
lib/groonga/command/error.rb,
lib/groonga/command/delete.rb,
lib/groonga/command/parser.rb,
lib/groonga/command/select.rb,
lib/groonga/command/suggest.rb,
lib/groonga/command/version.rb,
lib/groonga/command/register.rb,
lib/groonga/command/truncate.rb,
lib/groonga/command/table-create.rb,
lib/groonga/command/table-remove.rb,
lib/groonga/command/table-rename.rb,
lib/groonga/command/column-create.rb,
lib/groonga/command/column-remove.rb,
lib/groonga/command/column-rename.rb

Defined Under Namespace

Classes: Base, ColumnCreate, ColumnRemove, ColumnRename, Delete, Error, Get, Load, ParseError, Parser, Register, Select, Suggest, TableCreate, TableRemove, TableRename, Truncate

Constant Summary collapse

VERSION =
"1.0.1"
@@registered_commands =
{}

Class Method Summary collapse

Class Method Details

.find(name) ⇒ Object



30
31
32
# File 'lib/groonga/command/base.rb', line 30

def find(name)
  @@registered_commands[name] || Base
end

.register(name, klass) ⇒ Object



26
27
28
# File 'lib/groonga/command/base.rb', line 26

def register(name, klass)
  @@registered_commands[name] = klass
end