Class: MilkTea::AST::EnumMember
- Inherits:
-
Data
- Object
- Data
- MilkTea::AST::EnumMember
- Defined in:
- lib/milk_tea/core/ast.rb
Instance Attribute Summary collapse
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(name:, value:, line: nil, column: nil) ⇒ EnumMember
constructor
A new instance of EnumMember.
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
#column ⇒ Object (readonly)
Returns the value of attribute column
93 94 95 |
# File 'lib/milk_tea/core/ast.rb', line 93 def column @column end |
#line ⇒ Object (readonly)
Returns the value of attribute line
93 94 95 |
# File 'lib/milk_tea/core/ast.rb', line 93 def line @line end |
#name ⇒ Object (readonly)
Returns the value of attribute name
93 94 95 |
# File 'lib/milk_tea/core/ast.rb', line 93 def name @name end |
#value ⇒ Object (readonly)
Returns the value of attribute value
93 94 95 |
# File 'lib/milk_tea/core/ast.rb', line 93 def value @value end |