Class: Crokus::LabeledStmt
Instance Attribute Summary collapse
-
#label ⇒ Object
Returns the value of attribute label.
-
#stmt ⇒ Object
Returns the value of attribute stmt.
Instance Method Summary collapse
-
#initialize(label, stmt) ⇒ LabeledStmt
constructor
A new instance of LabeledStmt.
Methods inherited from Ast
Constructor Details
#initialize(label, stmt) ⇒ LabeledStmt
Returns a new instance of LabeledStmt.
197 198 199 |
# File 'lib/crokus/ast.rb', line 197 def initialize label,stmt @label,@stmt=label,stmt end |
Instance Attribute Details
#label ⇒ Object
Returns the value of attribute label.
196 197 198 |
# File 'lib/crokus/ast.rb', line 196 def label @label end |
#stmt ⇒ Object
Returns the value of attribute stmt.
196 197 198 |
# File 'lib/crokus/ast.rb', line 196 def stmt @stmt end |