Skip to content

Commit 805531f

Browse files
Merge pull request #374 from jonathanhefner/rdoc-6_10_0
Fix compatibility with RDoc >= 6.10.0
2 parents cd75e36 + 78914f3 commit 805531f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/sdoc/rdoc_monkey_patches.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def params
3232

3333

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

0 commit comments

Comments
 (0)