Class: Groonga::Schema::TableRemoveDefinition

Inherits:
Object
  • Object
show all
Defined in:
lib/groonga/schema.rb

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(name, options = {}) ⇒ TableRemoveDefinition

Returns a new instance of TableRemoveDefinition.



729
730
731
732
# File 'lib/groonga/schema.rb', line 729

def initialize(name, options={})
  @name = name
  @options = options
end

Instance Method Details

#defineObject



734
735
736
737
# File 'lib/groonga/schema.rb', line 734

def define
  context = @options[:context] || Groonga::Context.default
  context[@name].remove
end