class BELParser::Parsers::AST::Prefix

AST node representing a parameter.

Special node properties - namespace: {#namespace}

Attributes

namespace[RW]

Get/Set the namespace property.

Public Class Methods

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

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

Public Instance Methods

identifier() click to toggle source

Get the identifier for the prefix.

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