Class: Groonga::Schema::ViewRemoveDefinition

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of ViewRemoveDefinition.



1734
1735
1736
1737
# File 'lib/groonga/schema.rb', line 1734

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

Instance Method Details

#defineObject



1739
1740
1741
1742
# File 'lib/groonga/schema.rb', line 1739

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