mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 21:14:23 +02:00
Sync RDoc 6.14.0
This commit is contained in:
parent
ca1ea95784
commit
03eb777c69
185 changed files with 2008 additions and 1655 deletions
|
@ -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|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue