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.



1676
1677
1678
1679
# File 'lib/groonga/schema.rb', line 1676

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

Instance Method Details

#defineObject



1681
1682
1683
1684
# File 'lib/groonga/schema.rb', line 1681

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