Class: MilkTea::AST::TypeParamConstraint

Inherits:
Data
  • Object
show all
Defined in:
lib/milk_tea/core/ast.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_refObject (readonly)

Returns the value of attribute interface_ref

Returns:

  • (Object)

    the current value of interface_ref



12
13
14
# File 'lib/milk_tea/core/ast.rb', line 12

def interface_ref
  @interface_ref
end

#kindObject (readonly)

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



12
13
14
# File 'lib/milk_tea/core/ast.rb', line 12

def kind
  @kind
end