Class: FAM::Syntax::AST::LabelNode
Instance Attribute Summary collapse
-
#label ⇒ Object
Returns the value of attribute label.
Instance Method Summary collapse
-
#initialize(label) ⇒ LabelNode
constructor
A new instance of LabelNode.
Methods inherited from Node
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
#label ⇒ Object
Returns the value of attribute label.
25 26 27 |
# File 'lib/fam/syntax/ast.rb', line 25 def label @label end |