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
Public Class Methods
Source
# File lib/scoped_search/query_language/ast.rb 44 def initialize(value) # :nodoc 45 @value = value 46 end
Public Instance Methods
Source
# File lib/scoped_search/query_language/ast.rb 53 def eql?(node) # :nodoc 54 node.kind_of?(LeafNode) && node.value == value 55 end
Source
# File lib/scoped_search/query_language/ast.rb 49 def to_a 50 value 51 end
Return an array representation for the node