class Aspen::AST::Nodes::Node

Attributes

attribute[R]
label[R]

Public Class Methods

new(attribute: , label: nil) click to toggle source
# File lib/aspen/ast/nodes/node.rb, line 8
def initialize(attribute: , label: nil)
  @attribute = Aspen::AST::Nodes::Attribute.new(attribute)
  @label     = Aspen::AST::Nodes::Label.new(label)
end

Public Instance Methods

label=(content) click to toggle source
# File lib/aspen/ast/nodes/node.rb, line 13
def label=(content)
  @label = Aspen::AST::Nodes::Label.new(content)
end