Class: SearchCopGrammar::Nodes::MatchesFulltext

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

Direct Known Subclasses

MatchesFulltextNot

Instance Attribute Summary

Attributes inherited from Binary

#left, #right

Instance Method Summary collapse

Methods included from Base

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

Methods inherited from Binary

#initialize

Constructor Details

This class inherits a constructor from SearchCopGrammar::Nodes::Binary

Instance Method Details

#collectionObject



109
110
111
# File 'lib/search_cop_grammar/nodes.rb', line 109

def collection
  left
end

#finalize!Object



105
106
107
# File 'lib/search_cop_grammar/nodes.rb', line 105

def finalize!
  FulltextExpression.new collection, self
end

#fulltext?Boolean

Returns:

  • (Boolean)


101
102
103
# File 'lib/search_cop_grammar/nodes.rb', line 101

def fulltext?
  true
end

#notObject



97
98
99
# File 'lib/search_cop_grammar/nodes.rb', line 97

def not
  MatchesFulltextNot.new left, right
end