mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 21:44:30 +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
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue