Class: SearchCopGrammar::Nodes::Not

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/search_cop_grammar/nodes.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Base

#and, #can_flatten?, #can_group?, #can_optimize?, #flatten!, #fulltext?, #group!, #nodes, #not, #optimize!, #or

Constructor Details

#initialize(object) ⇒ Not

Returns a new instance of Not.



82
83
84
# File 'lib/search_cop_grammar/nodes.rb', line 82

def initialize(object)
  @object = object
end

Instance Attribute Details

#objectObject

Returns the value of attribute object.



80
81
82
# File 'lib/search_cop_grammar/nodes.rb', line 80

def object
  @object
end

Instance Method Details

#finalize!Object



86
87
88
89
90
# File 'lib/search_cop_grammar/nodes.rb', line 86

def finalize!
  @object.finalize!

  self
end