Class: MilkTea::AST::DetachExpr

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(body:, line: nil, column: nil) ⇒ DetachExpr

Returns a new instance of DetachExpr.



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

def initialize(body:, line: nil, column: nil) = super

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



178
179
180
# File 'lib/milk_tea/core/ast.rb', line 178

def body
  @body
end

#columnObject (readonly)

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



178
179
180
# File 'lib/milk_tea/core/ast.rb', line 178

def column
  @column
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



178
179
180
# File 'lib/milk_tea/core/ast.rb', line 178

def line
  @line
end