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.
97 |
# File 'lib/milk_tea/core/ast.rb', line 97 def initialize(name:, type:, attributes: [], line: nil, column: nil) = super |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes
96 97 98 |
# File 'lib/milk_tea/core/ast.rb', line 96 def attributes @attributes end |
#column ⇒ Object (readonly)
Returns the value of attribute column
96 97 98 |
# File 'lib/milk_tea/core/ast.rb', line 96 def column @column end |
#line ⇒ Object (readonly)
Returns the value of attribute line
96 97 98 |
# File 'lib/milk_tea/core/ast.rb', line 96 def line @line end |
#name ⇒ Object (readonly)
Returns the value of attribute name
96 97 98 |
# File 'lib/milk_tea/core/ast.rb', line 96 def name @name end |
#type ⇒ Object (readonly)
Returns the value of attribute type
96 97 98 |
# File 'lib/milk_tea/core/ast.rb', line 96 def type @type end |