Class: Tapioca::TypeVariable

Inherits:
T::Types::TypeVariable
  • Object
show all
Defined in:
lib/tapioca/sorbet_ext/generic_name_patch.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, variance) ⇒ TypeVariable

Returns a new instance of TypeVariable.



109
110
111
112
# File 'lib/tapioca/sorbet_ext/generic_name_patch.rb', line 109

def initialize(name, variance)
  @name = name
  super(variance)
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



114
115
116
# File 'lib/tapioca/sorbet_ext/generic_name_patch.rb', line 114

def name
  @name
end