[ruby/rdoc] [DOC] stop documenting fallback MatchData#match_length

Also empty document of `Object`.

https://github.com/ruby/rdoc/commit/ce32a3102b
This commit is contained in:
Nobuyoshi Nakada 2023-05-02 15:52:46 +09:00 committed by git
parent 5dfeffc614
commit 32cc6301b3

View File

@ -1,19 +1,19 @@
# frozen_string_literal: true # frozen_string_literal: true
## ##
# Manages changes of attributes in a block of text # Manages changes of attributes in a block of text
unless MatchData.method_defined?(:match_length) class RDoc::Markup::AttributeManager
using Module.new { unless ::MatchData.method_defined?(:match_length)
refine(MatchData) { using ::Module.new {
def match_length(nth) refine(::MatchData) {
def match_length(nth) # :nodoc:
b, e = offset(nth) b, e = offset(nth)
e - b if b e - b if b
end end
} }
} }
end end
class RDoc::Markup::AttributeManager
## ##
# The NUL character # The NUL character