Class ScopedSearch::QueryLanguage::AST::LeafNode
In: lib/scoped_search/query_language/ast.rb
Parent: Node

AST lead node. This node represents leafs in the AST and can represent either a search phrase or a search field name.

Methods

eql?   new   to_a  

Attributes

value  [R] 

Public Class methods

[Source]

    # File lib/scoped_search/query_language/ast.rb, line 44
44:     def initialize(value) # :nodoc
45:       @value = value
46:     end

Public Instance methods

[Source]

    # File lib/scoped_search/query_language/ast.rb, line 53
53:     def eql?(node) # :nodoc
54:       node.kind_of?(LeafNode) && node.value == value
55:     end

Return an array representation for the node

[Source]

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

[Validate]