Class: MilkTea::AST::TypeParam
- Inherits:
-
Data
- Object
- Data
- MilkTea::AST::TypeParam
- Defined in:
- lib/milk_tea/core/ast.rb
Instance Attribute Summary collapse
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#constraints ⇒ Object
readonly
Returns the value of attribute constraints.
-
#length ⇒ Object
readonly
Returns the value of attribute length.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name:, constraints: [], line: nil, column: nil, length: nil) ⇒ TypeParam
constructor
A new instance of TypeParam.
Constructor Details
#initialize(name:, constraints: [], line: nil, column: nil, length: nil) ⇒ TypeParam
Returns a new instance of TypeParam.
17 |
# File 'lib/milk_tea/core/ast.rb', line 17 def initialize(name:, constraints: [], line: nil, column: nil, length: nil) = super |
Instance Attribute Details
#column ⇒ Object (readonly)
Returns the value of attribute column
16 17 18 |
# File 'lib/milk_tea/core/ast.rb', line 16 def column @column end |
#constraints ⇒ Object (readonly)
Returns the value of attribute constraints
16 17 18 |
# File 'lib/milk_tea/core/ast.rb', line 16 def constraints @constraints end |
#length ⇒ Object (readonly)
Returns the value of attribute length
16 17 18 |
# File 'lib/milk_tea/core/ast.rb', line 16 def length @length end |
#line ⇒ Object (readonly)
Returns the value of attribute line
16 17 18 |
# File 'lib/milk_tea/core/ast.rb', line 16 def line @line end |
#name ⇒ Object (readonly)
Returns the value of attribute name
16 17 18 |
# File 'lib/milk_tea/core/ast.rb', line 16 def name @name end |