diff options
author | Nobuyoshi Nakada <[email protected]> | 2023-05-02 15:52:46 +0900 |
---|---|---|
committer | git <[email protected]> | 2023-05-02 17:06:36 +0000 |
commit | 32cc6301b375583c0aa7d8fea480628131e6a2aa (patch) | |
tree | d79b6513d61255b0905acd1af5d2d174c0cdefda /lib/rdoc/markup | |
parent | 5dfeffc614b62e42496b8e67dbc4ff08f7ea137c (diff) |
[ruby/rdoc] [DOC] stop documenting fallback `MatchData#match_length`
Also empty document of `Object`.
https://github.com/ruby/rdoc/commit/ce32a3102b
Diffstat (limited to 'lib/rdoc/markup')
-rw-r--r-- | lib/rdoc/markup/attribute_manager.rb | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/rdoc/markup/attribute_manager.rb b/lib/rdoc/markup/attribute_manager.rb index 601e6bc189..a2f866bff9 100644 --- a/lib/rdoc/markup/attribute_manager.rb +++ b/lib/rdoc/markup/attribute_manager.rb @@ -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 |