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.



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

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



194
195
196
# File 'lib/milk_tea/core/ast.rb', line 194

def body
  @body
end

#columnObject (readonly)

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



194
195
196
# File 'lib/milk_tea/core/ast.rb', line 194

def column
  @column
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



194
195
196
# File 'lib/milk_tea/core/ast.rb', line 194

def line
  @line
end