Skip to content

Commit

Permalink
[DOC] stop documenting fallback MatchData#match_length
Browse files Browse the repository at this point in the history
Also empty document of `Object`.
  • Loading branch information
nobu committed May 2, 2023
1 parent 945f0cb commit ce32a31
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions lib/rdoc/markup/attribute_manager.rb
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
# frozen_string_literal: true

##
# Manages changes of attributes in a block of text

unless MatchData.method_defined?(:match_length)
using Module.new {
refine(MatchData) {
def match_length(nth)
b, e = offset(nth)
e - b if b
end
}
}
end

class RDoc::Markup::AttributeManager
unless ::MatchData.method_defined?(:match_length)
using ::Module.new {
refine(::MatchData) {
def match_length(nth) # :nodoc:
b, e = offset(nth)
e - b if b
end
}
}
end

##
# The NUL character
Expand Down

0 comments on commit ce32a31

Please sign in to comment.