Class: MilkTea::AST::Param
- Inherits:
-
Data
- Object
- Data
- MilkTea::AST::Param
- Defined in:
- lib/milk_tea/core/ast.rb
Instance Attribute Summary collapse
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#default_value ⇒ Object
readonly
Returns the value of attribute default_value.
-
#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:, line: nil, column: nil, default_value: nil) ⇒ Param
constructor
A new instance of Param.
Constructor Details
#initialize(name:, type:, line: nil, column: nil, default_value: nil) ⇒ Param
Returns a new instance of Param.
121 |
# File 'lib/milk_tea/core/ast.rb', line 121 def initialize(name:, type:, line: nil, column: nil, default_value: nil) = super |
Instance Attribute Details
#column ⇒ Object (readonly)
Returns the value of attribute column
120 121 122 |
# File 'lib/milk_tea/core/ast.rb', line 120 def column @column end |
#default_value ⇒ Object (readonly)
Returns the value of attribute default_value
120 121 122 |
# File 'lib/milk_tea/core/ast.rb', line 120 def default_value @default_value end |
#line ⇒ Object (readonly)
Returns the value of attribute line
120 121 122 |
# File 'lib/milk_tea/core/ast.rb', line 120 def line @line end |
#name ⇒ Object (readonly)
Returns the value of attribute name
120 121 122 |
# File 'lib/milk_tea/core/ast.rb', line 120 def name @name end |
#type ⇒ Object (readonly)
Returns the value of attribute type
120 121 122 |
# File 'lib/milk_tea/core/ast.rb', line 120 def type @type end |