Sync RDoc 6.14.0

This commit is contained in:
Stan Lo 2025-05-22 22:49:04 +01:00 committed by Takashi Kokubun
parent ca1ea95784
commit 03eb777c69
185 changed files with 2008 additions and 1655 deletions

View file

@ -26,7 +26,7 @@ class RDoc::Markup::Attributes
##
# Returns a unique bit for +name+
def bitmap_for name
def bitmap_for(name)
bitmap = @name_to_bitmap.assoc name
unless bitmap then
@ -43,7 +43,7 @@ class RDoc::Markup::Attributes
##
# Returns a string representation of +bitmap+
def as_string bitmap
def as_string(bitmap)
return 'none' if bitmap.zero?
res = []
@ -57,7 +57,7 @@ class RDoc::Markup::Attributes
##
# yields each attribute name in +bitmap+
def each_name_of bitmap
def each_name_of(bitmap)
return enum_for __method__, bitmap unless block_given?
@name_to_bitmap.each do |name, bit|