Class: MilkTea::AST::MatchExprArm

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:, value:, binding_line: nil, binding_column: nil) ⇒ MatchExprArm

Returns a new instance of MatchExprArm.



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

def initialize(pattern:, binding_name:, value:, 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



146
147
148
# File 'lib/milk_tea/core/ast.rb', line 146

def binding_column
  @binding_column
end

#binding_lineObject (readonly)

Returns the value of attribute binding_line

Returns:

  • (Object)

    the current value of binding_line



146
147
148
# File 'lib/milk_tea/core/ast.rb', line 146

def binding_line
  @binding_line
end

#binding_nameObject (readonly)

Returns the value of attribute binding_name

Returns:

  • (Object)

    the current value of binding_name



146
147
148
# File 'lib/milk_tea/core/ast.rb', line 146

def binding_name
  @binding_name
end

#patternObject (readonly)

Returns the value of attribute pattern

Returns:

  • (Object)

    the current value of pattern



146
147
148
# File 'lib/milk_tea/core/ast.rb', line 146

def pattern
  @pattern
end

#valueObject (readonly)

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



146
147
148
# File 'lib/milk_tea/core/ast.rb', line 146

def value
  @value
end