Class: MilkTea::AST::TypeParamConstraint
- Inherits:
-
Data
- Object
- Data
- MilkTea::AST::TypeParamConstraint
- Defined in:
- lib/milk_tea/core/ast.rb
Instance Attribute Summary collapse
-
#interface_ref ⇒ Object
readonly
Returns the value of attribute interface_ref.
-
#kind ⇒ Object
readonly
Returns the value of attribute kind.
Instance Method Summary collapse
-
#initialize(kind:, interface_ref: nil) ⇒ TypeParamConstraint
constructor
A new instance of TypeParamConstraint.
Constructor Details
#initialize(kind:, interface_ref: nil) ⇒ TypeParamConstraint
Returns a new instance of TypeParamConstraint.
13 |
# File 'lib/milk_tea/core/ast.rb', line 13 def initialize(kind:, interface_ref: nil) = super |
Instance Attribute Details
#interface_ref ⇒ Object (readonly)
Returns the value of attribute interface_ref
12 13 14 |
# File 'lib/milk_tea/core/ast.rb', line 12 def interface_ref @interface_ref end |
#kind ⇒ Object (readonly)
Returns the value of attribute kind
12 13 14 |
# File 'lib/milk_tea/core/ast.rb', line 12 def kind @kind end |