Class: BELParser::Parsers::AST::Value
- Defined in:
- lib/bel_parser/parsers/ast/node.rb
Overview
AST node representing a value.
Special node properties - encoding: #encoding
Instance Attribute Summary collapse
-
#encoding ⇒ Object
Get/Set the value’s encoding.
-
#namespace ⇒ Object
Get/Set the value’s namespace.
-
#namespace_value ⇒ Object
Get/Set the value from the purported namespace.
-
#prefix ⇒ Object
Get/Set the namespace prefix.
Attributes inherited from Node
#character_range, #complete, #line_number
Attributes inherited from AST::Node
Instance Method Summary collapse
-
#initialize(children = [], properties = {}) ⇒ Value
constructor
New Value AST node.
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_bel, #to_s, #to_sexp, #updated
Methods included from BELParser::Parsers
Constructor Details
Instance Attribute Details
#encoding ⇒ Object
Get/Set the value’s encoding.
962 963 964 |
# File 'lib/bel_parser/parsers/ast/node.rb', line 962 def encoding @encoding end |
#namespace ⇒ Object
Get/Set the value’s namespace.
965 966 967 |
# File 'lib/bel_parser/parsers/ast/node.rb', line 965 def namespace @namespace end |
#namespace_value ⇒ Object
Get/Set the value from the purported namespace.
968 969 970 |
# File 'lib/bel_parser/parsers/ast/node.rb', line 968 def namespace_value @namespace_value end |
#prefix ⇒ Object
Get/Set the namespace prefix.
959 960 961 |
# File 'lib/bel_parser/parsers/ast/node.rb', line 959 def prefix @prefix end |