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