Class: MilkTea::AST::Argument
- Inherits:
-
Data
- Object
- Data
- MilkTea::AST::Argument
- 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) ⇒ Argument
constructor
A new instance of Argument.
Constructor Details
#initialize(name:, value:, line: nil, column: nil) ⇒ Argument
Returns a new instance of Argument.
247 |
# File 'lib/milk_tea/core/ast.rb', line 247 def initialize(name:, value:, line: nil, column: nil) = super |
Instance Attribute Details
#column ⇒ Object (readonly)
Returns the value of attribute column
246 247 248 |
# File 'lib/milk_tea/core/ast.rb', line 246 def column @column end |
#line ⇒ Object (readonly)
Returns the value of attribute line
246 247 248 |
# File 'lib/milk_tea/core/ast.rb', line 246 def line @line end |
#name ⇒ Object (readonly)
Returns the value of attribute name
246 247 248 |
# File 'lib/milk_tea/core/ast.rb', line 246 def name @name end |
#value ⇒ Object (readonly)
Returns the value of attribute value
246 247 248 |
# File 'lib/milk_tea/core/ast.rb', line 246 def value @value end |