Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Context#each_section yields only #display? items #502

Merged
merged 2 commits into from
Aug 29, 2017

Conversation

aycabta
Copy link
Member

@aycabta aycabta commented Aug 26, 2017

Context#each_section yields all constants and attributes, but RDoc treats only displayed items for documentation. The Darkfish template, lib/rdoc/generator/template/darkfish/class.rhtml, it retrieves items only what #display? is true inside #each_section. It's strange behavior. I think #each_section should return only displayed items.

This Pull Request fixes it.

Context#each_section yields all constants and attributes,
but RDoc treats only displayed items for documentation.
The Darkfish template,
lib/rdoc/generator/template/darkfish/class.rhtml,
it retrieves items only what #display? is true inside #each_section.
It's strange behavior.
I think #each_section should return only displayed items.
This commit fixes it.
@hsbt hsbt self-assigned this Aug 26, 2017
@hsbt
Copy link
Member

hsbt commented Aug 29, 2017

Confirmed. displayed? filter should run before template rendering.

@hsbt hsbt merged commit 4a3374e into ruby:master Aug 29, 2017
@aycabta aycabta deleted the each_section-returns-only-displayed-items branch August 29, 2017 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants