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
85 86 87 88 89 90 91 |
# File 'lib/tapioca/sorbet_ext/generic_name_patch.rb', line 85 def coerce(val) if val.is_a?(Tapioca::TypeVariableModule) val.coerce_to_type_variable else super end end |