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
|
@ -20,29 +20,29 @@ class RDoc::Markup::Raw
|
|||
##
|
||||
# Appends +text+
|
||||
|
||||
def << text
|
||||
def <<(text)
|
||||
@parts << text
|
||||
end
|
||||
|
||||
def == other # :nodoc:
|
||||
def ==(other) # :nodoc:
|
||||
self.class == other.class and @parts == other.parts
|
||||
end
|
||||
|
||||
##
|
||||
# Calls #accept_raw+ on +visitor+
|
||||
|
||||
def accept visitor
|
||||
def accept(visitor)
|
||||
visitor.accept_raw self
|
||||
end
|
||||
|
||||
##
|
||||
# Appends +other+'s parts
|
||||
|
||||
def merge other
|
||||
def merge(other)
|
||||
@parts.concat other.parts
|
||||
end
|
||||
|
||||
def pretty_print q # :nodoc:
|
||||
def pretty_print(q) # :nodoc:
|
||||
self.class.name =~ /.*::(\w{1,4})/i
|
||||
|
||||
q.group 2, "[#{$1.downcase}: ", ']' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue