Class: BELParser::Parsers::AST::Parameter
- Defined in:
- lib/bel_parser/parsers/ast/node.rb
Overview
AST node representing a parameter.
Instance Attribute Summary
Attributes inherited from Node
#character_range, #complete, #line_number
Attributes inherited from AST::Node
Instance Method Summary collapse
-
#initialize(children = [], properties = {}) ⇒ Parameter
constructor
New Parameter AST node.
-
#prefix ⇒ Object
Get the prefix for the parameter.
-
#value ⇒ Object
Get the value for the parameter.
Methods inherited from Node
#add_syntax_error, #append, #child, #children?, #complete?, #concat, #first_child, #fourth_child, #freeze, #incomplete?, #num_children, #range_end, #range_start, #second_child, #syntax_errors, #third_child, #traverse, #updated
Methods inherited from AST::Node
#==, #append, #concat, #dup, #eql?, #inspect, #to_a, #to_ast, #to_sexp, #updated
Constructor Details
Instance Method Details
#prefix ⇒ Object
Get the prefix for the parameter.
573 574 575 |
# File 'lib/bel_parser/parsers/ast/node.rb', line 573 def prefix children[0] end |
#value ⇒ Object
Get the value for the parameter.
578 579 580 |
# File 'lib/bel_parser/parsers/ast/node.rb', line 578 def value children[1] end |