Repository navigation
📚️ Fix Config attributes docs broken by rdoc 8.0 - #735
Merged
Merged
Conversation
The prism parser (the only parser in rdoc v8.0) is strict about arguments to `attr_reader`, `attr_writer`, `attr_accessor`, and `attr`. It _only_ parses as an attribute when _all_ arguments are symbols. IMO, this is a regression in rdoc 8.0, and a bug in rdoc. The rdoc for `Net::IMAP::Config` intentionally took advantage of the looser parsing done by rdoc 7.2. `Net::IMAP::Config` defines its own versions of `attr_reader`, `attr_writer` and `attr_accessor` that add keyword arguments. See ruby/rdoc#1790
nevans
force-pushed
the
fix-config-attributes-rdoc-8.0
branch
from
August 26, 2026 18:46
78baa76 to
5aeab90
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The prism parser (the only parser in rdoc v8.0) is strict about arguments to
attr_reader,attr_writer,attr_accessor, andattr. It only parses as an attribute when all arguments are symbols.The rdoc for
Net::IMAP::Configintentionally took advantage of the looser parsing done by rdoc 7.2.Net::IMAP::Configdefines its own versions ofattr_reader,attr_writerandattr_accessorthat add keyword arguments.This implements a temporary workaround to fix the documentation pages, but (in my opinion) this is a regression in rdoc 8.0.0, which should be fixed in rdoc. See ruby/rdoc#1790