Class: MilkTea::AST::IfStmt
- Inherits:
-
Data
- Object
- Data
- MilkTea::AST::IfStmt
- Defined in:
- lib/milk_tea/core/ast.rb
Instance Attribute Summary collapse
-
#branches ⇒ Object
readonly
Returns the value of attribute branches.
-
#else_body ⇒ Object
readonly
Returns the value of attribute else_body.
-
#else_column ⇒ Object
readonly
Returns the value of attribute else_column.
-
#else_line ⇒ Object
readonly
Returns the value of attribute else_line.
-
#inline ⇒ Object
readonly
Returns the value of attribute inline.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
Instance Method Summary collapse
-
#initialize(branches:, else_body:, inline: false, line: nil, else_line: nil, else_column: nil) ⇒ IfStmt
constructor
A new instance of IfStmt.
Constructor Details
#initialize(branches:, else_body:, inline: false, line: nil, else_line: nil, else_column: nil) ⇒ IfStmt
Returns a new instance of IfStmt.
134 |
# File 'lib/milk_tea/core/ast.rb', line 134 def initialize(branches:, else_body:, inline: false, line: nil, else_line: nil, else_column: nil) = super |
Instance Attribute Details
#branches ⇒ Object (readonly)
Returns the value of attribute branches
133 134 135 |
# File 'lib/milk_tea/core/ast.rb', line 133 def branches @branches end |
#else_body ⇒ Object (readonly)
Returns the value of attribute else_body
133 134 135 |
# File 'lib/milk_tea/core/ast.rb', line 133 def else_body @else_body end |
#else_column ⇒ Object (readonly)
Returns the value of attribute else_column
133 134 135 |
# File 'lib/milk_tea/core/ast.rb', line 133 def else_column @else_column end |
#else_line ⇒ Object (readonly)
Returns the value of attribute else_line
133 134 135 |
# File 'lib/milk_tea/core/ast.rb', line 133 def else_line @else_line end |
#inline ⇒ Object (readonly)
Returns the value of attribute inline
133 134 135 |
# File 'lib/milk_tea/core/ast.rb', line 133 def inline @inline end |
#line ⇒ Object (readonly)
Returns the value of attribute line
133 134 135 |
# File 'lib/milk_tea/core/ast.rb', line 133 def line @line end |