ruby / gem_rbs_collection

A collection of RBS for gems.
MIT License
247 stars 101 forks source link

Add types for `attr_internal_**` methods #465

Closed m11o closed 5 months ago

m11o commented 8 months ago

This PR adds types to attr_internal_** methods which is written in active_support/core_ext/module/attr_internal.rb

Also, I use (Symbol | String) type in the attr parameter of these methods instead of interned because RBS has been decided on using internal instead of (Symbol | String) or (String | Symbol) but that hasn't been released yet. (https://github.com/ruby/rbs/pull/1499)

So. I added TODO comments and will fix them after releasing the interned keyword.