ruby / rbs

Type Signature for Ruby
Other
1.92k stars 202 forks source link

Protected methods #579

Open pointlessone opened 3 years ago

pointlessone commented 3 years ago

RBS currently doesn't support protected method visibility. Protected methods are specified as public in generated rbs files.

Semantically protected methods are not the same as public. So I have a few questions:

castwide commented 3 years ago

If support for protected methods is on the roadmap, I'd be willing to submit a PR for it.

castwide commented 2 years ago

Any interest in this feature? It might be uncommon, but it's still useful ("and Solargraph already supports it," I added humbly).

skull-squadron commented 1 year ago

Protected, private, and public all need typing checking, code-completion, and all the other benefits rbs provides.