Class: Aspen::AST::Nodes::Node
- Inherits:
-
Object
- Object
- Aspen::AST::Nodes::Node
- Defined in:
- lib/aspen/ast/nodes/node.rb
Instance Attribute Summary collapse
-
#attribute ⇒ Object
readonly
Returns the value of attribute attribute.
-
#label ⇒ Object
Returns the value of attribute label.
Instance Method Summary collapse
-
#initialize(attribute:, label: nil) ⇒ Node
constructor
A new instance of Node.
Constructor Details
Instance Attribute Details
#attribute ⇒ Object (readonly)
Returns the value of attribute attribute.
6 7 8 |
# File 'lib/aspen/ast/nodes/node.rb', line 6 def attribute @attribute end |
#label ⇒ Object
Returns the value of attribute label.
6 7 8 |
# File 'lib/aspen/ast/nodes/node.rb', line 6 def label @label end |