Class: MilkTea::AST::WhileStmt
- Inherits:
-
Data
- Object
- Data
- MilkTea::AST::WhileStmt
- Defined in:
- lib/milk_tea/core/ast.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#condition ⇒ Object
readonly
Returns the value of attribute condition.
-
#inline ⇒ Object
readonly
Returns the value of attribute inline.
-
#length ⇒ Object
readonly
Returns the value of attribute length.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
Instance Method Summary collapse
-
#initialize(condition:, body:, inline: false, line: nil, column: nil, length: nil) ⇒ WhileStmt
constructor
A new instance of WhileStmt.
Constructor Details
#initialize(condition:, body:, inline: false, line: nil, column: nil, length: nil) ⇒ WhileStmt
Returns a new instance of WhileStmt.
185 |
# File 'lib/milk_tea/core/ast.rb', line 185 def initialize(condition:, body:, inline: false, line: nil, column: nil, length: nil) = super |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body
184 185 186 |
# File 'lib/milk_tea/core/ast.rb', line 184 def body @body end |
#column ⇒ Object (readonly)
Returns the value of attribute column
184 185 186 |
# File 'lib/milk_tea/core/ast.rb', line 184 def column @column end |
#condition ⇒ Object (readonly)
Returns the value of attribute condition
184 185 186 |
# File 'lib/milk_tea/core/ast.rb', line 184 def condition @condition end |
#inline ⇒ Object (readonly)
Returns the value of attribute inline
184 185 186 |
# File 'lib/milk_tea/core/ast.rb', line 184 def inline @inline end |
#length ⇒ Object (readonly)
Returns the value of attribute length
184 185 186 |
# File 'lib/milk_tea/core/ast.rb', line 184 def length @length end |
#line ⇒ Object (readonly)
Returns the value of attribute line
184 185 186 |
# File 'lib/milk_tea/core/ast.rb', line 184 def line @line end |