Skip to content

Commit

Permalink
Merge pull request #374 from jonathanhefner/rdoc-6_10_0
Browse files Browse the repository at this point in the history
Fix compatibility with RDoc >= 6.10.0
  • Loading branch information
jonathanhefner authored Jan 16, 2025
2 parents cd75e36 + 78914f3 commit 805531f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sdoc/rdoc_monkey_patches.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def params


RDoc::Markup::ToHtmlCrossref.prepend(Module.new do
def cross_reference(name, text = nil, code = true)
def cross_reference(name, text = nil, code = true, *, **)
if text
# Style ref links that look like code, such as `{Rails}[rdoc-ref:Rails]`.
code ||= !text.include?(" ") || text.match?(/\S\(/)
Expand Down

0 comments on commit 805531f

Please sign in to comment.