class BELParser::Parsers::AST::Pattern

AST node representing a Pattern.

Private Class Methods

new(children = [], properties = {}) click to toggle source

New Pattern AST node.

@see Node#initialize Node class for basic properties

Calls superclass method BELParser::Parsers::AST::Node::new
# File lib/bel_parser/parsers/ast/node.rb, line 438
def initialize(children = [], properties = {})
  super(Pattern.ast_type, children, properties)
end

Private Instance Methods

string() click to toggle source

Get the pattern's string.

# File lib/bel_parser/parsers/ast/node.rb, line 443
def string
  children[0]
end