AaronC81 / sord

Convert YARD docs to Sorbet RBI and Ruby 3/Steep RBS files
https://sord.aaronc.cc
MIT License
293 stars 18 forks source link

Add --hide-private to omit anything with visibility private #146

Closed dorner closed 1 year ago

dorner commented 1 year ago

Currently, adding a @!visibility private tag does not affect sord's output. This PR adds a --hide-private option to not include anything tagged this way. Some examples might be monkey patching existing code (where our patch might inadvertently override better-documented existing methods), or more complex metaprogramming that sord might be confused by.

AaronC81 commented 1 year ago

Apologies, I missed this it was opened! This is a great improvement - thanks for your contribution.

dorner commented 1 year ago

Nice, thanks!