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
44 def initialize(value) # :nodoc
45   @value = value
46 end

Public Instance Methods

empty?() click to toggle source
   # File lib/scoped_search/query_language/ast.rb
57 def empty?
58   false
59 end
eql?(node) click to toggle source
   # File lib/scoped_search/query_language/ast.rb
53 def eql?(node) # :nodoc
54   node.kind_of?(LeafNode) && node.value == value
55 end
to_a() click to toggle source

Return an array representation for the node

   # File lib/scoped_search/query_language/ast.rb
49 def to_a
50   value
51 end