Class: Parser::AST::Node
- Inherits:
-
AST::Node
- Object
- AST::Node
- Parser::AST::Node
- Defined in:
- lib/parser/ast/node.rb
Instance Attribute Summary collapse
-
#source_map ⇒ Object
(also: #src)
readonly
Returns the value of attribute source_map.
Instance Method Summary collapse
Instance Attribute Details
#source_map ⇒ Object (readonly) Also known as: src
Returns the value of attribute source_map.
5 6 7 |
# File 'lib/parser/ast/node.rb', line 5 def source_map @source_map end |
Instance Method Details
#assign_properties(properties) ⇒ Object
9 10 11 12 13 |
# File 'lib/parser/ast/node.rb', line 9 def assign_properties(properties) if (source_map = properties[:source_map]) @source_map = source_map end end |