Add :showdoc: directive for private and protected objects (RFC #0011)#15337
Conversation
|
I've just been thinking of an edge case: we need the parent namespace to appear if any descendant type is marked with # :nodoc:
#
# this comment musn't appear in docs
module Foo
# :showdoc:
#
# this comment must appear in docs
module Bar
end
end |
|
@ysbaddaden I believe the nodoc nesting showdoc case should be handled because But this concern brings up that there should be specs for this to ensure the behaviour is implemented as inspected and won't change by future changes. |
|
@ysbaddaden I believe the behavior determined during discussion with the RFC is that a @straight-shoota I can work on adding doc generator specs. |
|
Let me know if you have more ideas for specs |
|
This pull request has been mentioned on Crystal Forum. There might be relevant details there: |
Using :showdoc: on a namespace does not apply to child methods / objects
ysbaddaden
left a comment
There was a problem hiding this comment.
Thank you! That looks all good to me.
:showdoc: directive for private and protected objects (RFC #0011)
First part of splitting up #15294.
Private class:

Private methods:

