Class: MilkTea::AST::Field

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, type:, attributes: [], line: nil, column: nil) ⇒ Field

Returns a new instance of Field.



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

def initialize(name:, type:, attributes: [], line: nil, column: nil) = super

Instance Attribute Details

#attributesObject (readonly)

Returns the value of attribute attributes

Returns:

  • (Object)

    the current value of attributes



84
85
86
# File 'lib/milk_tea/core/ast.rb', line 84

def attributes
  @attributes
end

#columnObject (readonly)

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



84
85
86
# File 'lib/milk_tea/core/ast.rb', line 84

def column
  @column
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



84
85
86
# File 'lib/milk_tea/core/ast.rb', line 84

def line
  @line
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



84
85
86
# File 'lib/milk_tea/core/ast.rb', line 84

def name
  @name
end

#typeObject (readonly)

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



84
85
86
# File 'lib/milk_tea/core/ast.rb', line 84

def type
  @type
end