class ScopedSearch::QueryLanguage::AST::LeafNode
AST lead node. This node represents leafs in the AST and can represent either a search phrase or a search field name.
Attributes
value[R]
Public Class Methods
new(value)
click to toggle source
# File lib/scoped_search/query_language/ast.rb, line 44 def initialize(value) # :nodoc @value = value end
Public Instance Methods
empty?()
click to toggle source
# File lib/scoped_search/query_language/ast.rb, line 57 def empty? false end
eql?(node)
click to toggle source
# File lib/scoped_search/query_language/ast.rb, line 53 def eql?(node) # :nodoc node.kind_of?(LeafNode) && node.value == value end
to_a()
click to toggle source
Return an array representation for the node
# File lib/scoped_search/query_language/ast.rb, line 49 def to_a value end