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.



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

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



114
115
116
# File 'lib/milk_tea/core/ast.rb', line 114

def column
  @column
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



114
115
116
# File 'lib/milk_tea/core/ast.rb', line 114

def line
  @line
end

#methodsObject (readonly)

Returns the value of attribute methods

Returns:

  • (Object)

    the current value of methods



114
115
116
# File 'lib/milk_tea/core/ast.rb', line 114

def methods
  @methods
end

#type_nameObject (readonly)

Returns the value of attribute type_name

Returns:

  • (Object)

    the current value of type_name



114
115
116
# File 'lib/milk_tea/core/ast.rb', line 114

def type_name
  @type_name
end