Class: Chelsy::Goto

Inherits:
Stmt show all
Defined in:
lib/chelsy/ast.rb

Instance Attribute Summary collapse

Attributes inherited from Element

#fragments, #post_fragments

Instance Method Summary collapse

Constructor Details

#initialize(label, **rest) ⇒ Goto

Returns a new instance of Goto.



1078
1079
1080
1081
# File 'lib/chelsy/ast.rb', line 1078

def initialize(label, **rest)
  @label = Syntax::Ident.ensure(label)
  super **rest
end

Instance Attribute Details

#labelObject (readonly)

Returns the value of attribute label.



1076
1077
1078
# File 'lib/chelsy/ast.rb', line 1076

def label
  @label
end