Module: T::Utils::CoercePatch
- Included in:
- T::Utils
- Defined in:
- lib/tapioca/sorbet_ext/generic_name_patch.rb
Instance Method Summary collapse
Instance Method Details
#coerce(val) ⇒ Object
99 100 101 102 103 104 105 |
# File 'lib/tapioca/sorbet_ext/generic_name_patch.rb', line 99 def coerce(val) if val.is_a?(Tapioca::TypeVariableModule) val.coerce_to_type_variable else super end end |