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

@ -20,7 +20,7 @@ class RDoc::RD::Inline
# +rdoc+ may be another Inline or a String. If +reference+ is not given it
# will use the text from +rdoc+.
def self.new rdoc, reference = rdoc
def self.new(rdoc, reference = rdoc)
if self === rdoc and reference.equal? rdoc then
rdoc
else
@ -31,7 +31,7 @@ class RDoc::RD::Inline
##
# Initializes the Inline with +rdoc+ and +inline+
def initialize rdoc, reference # :not-new:
def initialize(rdoc, reference) # :not-new:
@reference = reference.equal?(rdoc) ? reference.dup : reference
# unpack
@ -39,7 +39,7 @@ class RDoc::RD::Inline
@rdoc = rdoc
end
def == other # :nodoc:
def ==(other) # :nodoc:
self.class === other and
@reference == other.reference and @rdoc == other.rdoc
end
@ -47,7 +47,7 @@ class RDoc::RD::Inline
##
# Appends +more+ to this inline. +more+ may be a String or another Inline.
def append more
def append(more)
case more
when String then
@reference += more