Class: Tapioca::TypeVariable
- Inherits:
-
T::Types::TypeVariable
- Object
- T::Types::TypeVariable
- Tapioca::TypeVariable
- Defined in:
- lib/tapioca/sorbet_ext/generic_name_patch.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, variance) ⇒ TypeVariable
constructor
A new instance of TypeVariable.
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
#name ⇒ Object (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 |