Class: MilkTea::AST::IfBranch
- Inherits:
-
Data
- Object
- Data
- MilkTea::AST::IfBranch
- 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.
-
#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:, line: nil, column: nil, length: nil) ⇒ IfBranch
constructor
A new instance of IfBranch.
Constructor Details
#initialize(condition:, body:, line: nil, column: nil, length: nil) ⇒ IfBranch
Returns a new instance of IfBranch.
131 |
# File 'lib/milk_tea/core/ast.rb', line 131 def initialize(condition:, body:, line: nil, column: nil, length: nil) = super |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body
130 131 132 |
# File 'lib/milk_tea/core/ast.rb', line 130 def body @body end |
#column ⇒ Object (readonly)
Returns the value of attribute column
130 131 132 |
# File 'lib/milk_tea/core/ast.rb', line 130 def column @column end |
#condition ⇒ Object (readonly)
Returns the value of attribute condition
130 131 132 |
# File 'lib/milk_tea/core/ast.rb', line 130 def condition @condition end |
#length ⇒ Object (readonly)
Returns the value of attribute length
130 131 132 |
# File 'lib/milk_tea/core/ast.rb', line 130 def length @length end |
#line ⇒ Object (readonly)
Returns the value of attribute line
130 131 132 |
# File 'lib/milk_tea/core/ast.rb', line 130 def line @line end |