Class: MilkTea::AST::MatchArm

Inherits:
Data
  • Object
show all
Defined in:
lib/milk_tea/core/ast.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pattern:, binding_name:, body:, binding_line: nil, binding_column: nil) ⇒ MatchArm

Returns a new instance of MatchArm.



157
# File 'lib/milk_tea/core/ast.rb', line 157

def initialize(pattern:, binding_name:, body:, binding_line: nil, binding_column: nil) = super

Instance Attribute Details

#binding_columnObject (readonly)

Returns the value of attribute binding_column

Returns:

  • (Object)

    the current value of binding_column



156
157
158
# File 'lib/milk_tea/core/ast.rb', line 156

def binding_column
  @binding_column
end

#binding_lineObject (readonly)

Returns the value of attribute binding_line

Returns:

  • (Object)

    the current value of binding_line



156
157
158
# File 'lib/milk_tea/core/ast.rb', line 156

def binding_line
  @binding_line
end

#binding_nameObject (readonly)

Returns the value of attribute binding_name

Returns:

  • (Object)

    the current value of binding_name



156
157
158
# File 'lib/milk_tea/core/ast.rb', line 156

def binding_name
  @binding_name
end

#bodyObject (readonly)

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



156
157
158
# File 'lib/milk_tea/core/ast.rb', line 156

def body
  @body
end

#patternObject (readonly)

Returns the value of attribute pattern

Returns:

  • (Object)

    the current value of pattern



156
157
158
# File 'lib/milk_tea/core/ast.rb', line 156

def pattern
  @pattern
end