class AdvancedSearch::AST::Base
Attributes
edges[R]
Public Class Methods
new()
click to toggle source
# File lib/advanced_search/ast/base.rb, line 4 def initialize @edges = [] end
Public Instance Methods
add_edge(other_node)
click to toggle source
# File lib/advanced_search/ast/base.rb, line 10 def add_edge(other_node) unless other_node.is_a?(Base) raise( TypeError, format( 'Invalid AST edge. Expected AdvancedSearch::AST::Base, got %s', other_node ) ) end @edges.push(other_node) end