Module: Groonga::Command

Defined in:
lib/groonga/command/get.rb,
lib/groonga/command/base.rb,
lib/groonga/command/dump.rb,
lib/groonga/command/load.rb,
lib/groonga/command/error.rb,
lib/groonga/command/delete.rb,
lib/groonga/command/select.rb,
lib/groonga/command/status.rb,
lib/groonga/command/suggest.rb,
lib/groonga/command/version.rb,
lib/groonga/command/register.rb,
lib/groonga/command/tokenize.rb,
lib/groonga/command/truncate.rb,
lib/groonga/command/normalize.rb,
lib/groonga/command/ruby-eval.rb,
lib/groonga/command/ruby-load.rb,
lib/groonga/command/format/uri.rb,
lib/groonga/command/column-list.rb,
lib/groonga/command/range-filter.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,
lib/groonga/command/format/command.rb,
lib/groonga/command/request-cancel.rb,
lib/groonga/command/table-tokenize.rb

Defined Under Namespace

Modules: Format Classes: Base, ColumnCreate, ColumnList, ColumnRemove, ColumnRename, Delete, Dump, Error, Get, Load, Normalize, RangeFilter, Register, RequestCancel, RubyEval, RubyLoad, Select, Status, Suggest, TableCreate, TableRemove, TableRename, TableTokenize, Tokenize, Truncate

Constant Summary collapse

VERSION =
"1.1.0"
@@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