Class: MilkTea::AST::AttributeDecl
- Inherits:
-
Data
- Object
- Data
- MilkTea::AST::AttributeDecl
- 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.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#targets ⇒ Object
readonly
Returns the value of attribute targets.
-
#visibility ⇒ Object
readonly
Returns the value of attribute visibility.
Instance Method Summary collapse
-
#initialize(name:, targets:, params:, visibility:, line: nil, column: nil) ⇒ AttributeDecl
constructor
A new instance of AttributeDecl.
Constructor Details
#initialize(name:, targets:, params:, visibility:, line: nil, column: nil) ⇒ AttributeDecl
Returns a new instance of AttributeDecl.
73 |
# File 'lib/milk_tea/core/ast.rb', line 73 def initialize(name:, targets:, params:, visibility:, line: nil, column: nil) = super |
Instance Attribute Details
#column ⇒ Object (readonly)
Returns the value of attribute column
72 73 74 |
# File 'lib/milk_tea/core/ast.rb', line 72 def column @column end |
#line ⇒ Object (readonly)
Returns the value of attribute line
72 73 74 |
# File 'lib/milk_tea/core/ast.rb', line 72 def line @line end |
#name ⇒ Object (readonly)
Returns the value of attribute name
72 73 74 |
# File 'lib/milk_tea/core/ast.rb', line 72 def name @name end |
#params ⇒ Object (readonly)
Returns the value of attribute params
72 73 74 |
# File 'lib/milk_tea/core/ast.rb', line 72 def params @params end |
#targets ⇒ Object (readonly)
Returns the value of attribute targets
72 73 74 |
# File 'lib/milk_tea/core/ast.rb', line 72 def targets @targets end |
#visibility ⇒ Object (readonly)
Returns the value of attribute visibility
72 73 74 |
# File 'lib/milk_tea/core/ast.rb', line 72 def visibility @visibility end |