class BELParser::Parsers::AST::Keyword

AST node representing a keyword (e.g. definitions).

Public Class Methods

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

New Keyword 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 338
def initialize(children = [], properties = {})
  super(Keyword.ast_type, children, properties)
end

Public Instance Methods

identifier() click to toggle source

Get the keyword's identifier.

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