Class: MilkTea::AST::EnumMember

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:, value:, line: nil, column: nil) ⇒ EnumMember

Returns a new instance of EnumMember.



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

def initialize(name:, value:, line: nil, column: nil) = super

Instance Attribute Details

#columnObject (readonly)

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



93
94
95
# File 'lib/milk_tea/core/ast.rb', line 93

def column
  @column
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



93
94
95
# File 'lib/milk_tea/core/ast.rb', line 93

def line
  @line
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



93
94
95
# File 'lib/milk_tea/core/ast.rb', line 93

def name
  @name
end

#valueObject (readonly)

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



93
94
95
# File 'lib/milk_tea/core/ast.rb', line 93

def value
  @value
end