Class: MilkTea::AST::MatchArm
- Inherits:
-
Data
- Object
- Data
- MilkTea::AST::MatchArm
- Defined in:
- lib/milk_tea/core/ast.rb
Instance Attribute Summary collapse
-
#binding_column ⇒ Object
readonly
Returns the value of attribute binding_column.
-
#binding_line ⇒ Object
readonly
Returns the value of attribute binding_line.
-
#binding_name ⇒ Object
readonly
Returns the value of attribute binding_name.
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#pattern ⇒ Object
readonly
Returns the value of attribute pattern.
Instance Method Summary collapse
-
#initialize(pattern:, binding_name:, body:, binding_line: nil, binding_column: nil) ⇒ MatchArm
constructor
A new instance of MatchArm.
Constructor Details
#initialize(pattern:, binding_name:, body:, binding_line: nil, binding_column: nil) ⇒ MatchArm
Returns a new instance of MatchArm.
141 |
# File 'lib/milk_tea/core/ast.rb', line 141 def initialize(pattern:, binding_name:, body:, binding_line: nil, binding_column: nil) = super |
Instance Attribute Details
#binding_column ⇒ Object (readonly)
Returns the value of attribute binding_column
140 141 142 |
# File 'lib/milk_tea/core/ast.rb', line 140 def binding_column @binding_column end |
#binding_line ⇒ Object (readonly)
Returns the value of attribute binding_line
140 141 142 |
# File 'lib/milk_tea/core/ast.rb', line 140 def binding_line @binding_line end |
#binding_name ⇒ Object (readonly)
Returns the value of attribute binding_name
140 141 142 |
# File 'lib/milk_tea/core/ast.rb', line 140 def binding_name @binding_name end |
#body ⇒ Object (readonly)
Returns the value of attribute body
140 141 142 |
# File 'lib/milk_tea/core/ast.rb', line 140 def body @body end |
#pattern ⇒ Object (readonly)
Returns the value of attribute pattern
140 141 142 |
# File 'lib/milk_tea/core/ast.rb', line 140 def pattern @pattern end |