Class: MilkTea::AST::MatchStmt
- Inherits:
-
Data
- Object
- Data
- MilkTea::AST::MatchStmt
- Defined in:
- lib/milk_tea/core/ast.rb
Instance Attribute Summary collapse
-
#arms ⇒ Object
readonly
Returns the value of attribute arms.
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#expression ⇒ Object
readonly
Returns the value of attribute expression.
-
#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(expression:, arms:, inline: false, line: nil, column: nil, length: nil) ⇒ MatchStmt
constructor
A new instance of MatchStmt.
Constructor Details
#initialize(expression:, arms:, inline: false, line: nil, column: nil, length: nil) ⇒ MatchStmt
Returns a new instance of MatchStmt.
144 |
# File 'lib/milk_tea/core/ast.rb', line 144 def initialize(expression:, arms:, inline: false, line: nil, column: nil, length: nil) = super |
Instance Attribute Details
#arms ⇒ Object (readonly)
Returns the value of attribute arms
143 144 145 |
# File 'lib/milk_tea/core/ast.rb', line 143 def arms @arms end |
#column ⇒ Object (readonly)
Returns the value of attribute column
143 144 145 |
# File 'lib/milk_tea/core/ast.rb', line 143 def column @column end |
#expression ⇒ Object (readonly)
Returns the value of attribute expression
143 144 145 |
# File 'lib/milk_tea/core/ast.rb', line 143 def expression @expression end |
#inline ⇒ Object (readonly)
Returns the value of attribute inline
143 144 145 |
# File 'lib/milk_tea/core/ast.rb', line 143 def inline @inline end |
#length ⇒ Object (readonly)
Returns the value of attribute length
143 144 145 |
# File 'lib/milk_tea/core/ast.rb', line 143 def length @length end |
#line ⇒ Object (readonly)
Returns the value of attribute line
143 144 145 |
# File 'lib/milk_tea/core/ast.rb', line 143 def line @line end |