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