Skip to content

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants