Skip to content

Commit ce32a31

Browse files
committed
[DOC] stop documenting fallback MatchData#match_length
Also empty document of `Object`.
1 parent 945f0cb commit ce32a31

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

lib/rdoc/markup/attribute_manager.rb

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
# frozen_string_literal: true
2+
23
##
34
# Manages changes of attributes in a block of text
45

5-
unless MatchData.method_defined?(:match_length)
6-
using Module.new {
7-
refine(MatchData) {
8-
def match_length(nth)
9-
b, e = offset(nth)
10-
e - b if b
11-
end
12-
}
13-
}
14-
end
15-
166
class RDoc::Markup::AttributeManager
7+
unless ::MatchData.method_defined?(:match_length)
8+
using ::Module.new {
9+
refine(::MatchData) {
10+
def match_length(nth) # :nodoc:
11+
b, e = offset(nth)
12+
e - b if b
13+
end
14+
}
15+
}
16+
end
1717

1818
##
1919
# The NUL character

0 commit comments

Comments
 (0)