AST lead node. This node represents leafs in the AST and can represent either a search phrase or a search field name.
# File lib/scoped_search/query_language/ast.rb, line 44 def initialize(value) # :nodoc @value = value end
# File lib/scoped_search/query_language/ast.rb, line 57 def empty? false end
# File lib/scoped_search/query_language/ast.rb, line 53 def eql?(node) # :nodoc node.kind_of?(LeafNode) && node.value == value end
Return an array representation for the node
# File lib/scoped_search/query_language/ast.rb, line 49 def to_a value end