You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`Formatter#initialize` took an `RDoc::Options` object, but only 2
subclasses (`ToHtml`, `ToHtmlCrossref`) read from it — using just 6
specific boolean/array values. All other formatters passed `nil`.
Replace the `options` parameter with explicit keyword arguments:
- `ToHtml`: `pipe:`, `output_decoration:`
- `ToHtmlCrossref`: `pipe:`, `output_decoration:`, `hyperlink_all:`,
`show_hash:`, `autolink_excluded_words:`, `warn_missing_rdoc_ref:`
Call sites (`Generator::Markup#formatter`, `RDoc::RDoc#handle_pipe`)
now unpack the needed values from `RDoc::Options` at the boundary.
`ToHtmlSnippet` and `Text#snippet` no longer receive or forward options.
Delete `LinkLabelToHtml` (zero callers in the codebase).
Update `CodeObject#options` comment to reflect remaining callers.
0 commit comments