Class: MilkTea::AST::ExtendingBlock

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type_name:, methods:, line: nil, column: nil) ⇒ ExtendingBlock

Returns a new instance of ExtendingBlock.



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

def initialize(type_name:, methods:, line: nil, column: nil) = super

Instance Attribute Details

#columnObject (readonly)

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



102
103
104
# File 'lib/milk_tea/core/ast.rb', line 102

def column
  @column
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



102
103
104
# File 'lib/milk_tea/core/ast.rb', line 102

def line
  @line
end

#methodsObject (readonly)

Returns the value of attribute methods

Returns:

  • (Object)

    the current value of methods



102
103
104
# File 'lib/milk_tea/core/ast.rb', line 102

def methods
  @methods
end

#type_nameObject (readonly)

Returns the value of attribute type_name

Returns:

  • (Object)

    the current value of type_name



102
103
104
# File 'lib/milk_tea/core/ast.rb', line 102

def type_name
  @type_name
end