Class: FAM::Syntax::AST::LabelNode

Inherits:
Node show all
Defined in:
lib/fam/syntax/ast.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Node

#to_s

Constructor Details

#initialize(label) ⇒ LabelNode

Returns a new instance of LabelNode.



26
27
28
# File 'lib/fam/syntax/ast.rb', line 26

def initialize label
  @label = label.name[0..-2]
end

Instance Attribute Details

#labelObject

Returns the value of attribute label.



25
26
27
# File 'lib/fam/syntax/ast.rb', line 25

def label
  @label
end