mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/rdoc] Refine pretty_print
https://github.com/ruby/rdoc/commit/acb91ea74a
This commit is contained in:
parent
2af8b04eca
commit
416c63c118
3 changed files with 7 additions and 2 deletions
|
@ -56,7 +56,7 @@ class RDoc::NormalClass < RDoc::ClassModule
|
|||
def pretty_print q # :nodoc:
|
||||
superclass = @superclass ? " < #{@superclass}" : nil
|
||||
|
||||
q.group 2, "[class #{full_name}#{superclass} ", "]" do
|
||||
q.group 2, "[class #{full_name}#{superclass}", "]" do
|
||||
q.breakable
|
||||
q.text "includes:"
|
||||
q.breakable
|
||||
|
|
|
@ -30,7 +30,7 @@ class RDoc::NormalModule < RDoc::ClassModule
|
|||
end
|
||||
|
||||
def pretty_print q # :nodoc:
|
||||
q.group 2, "[module #{full_name}: ", "]" do
|
||||
q.group 2, "[module #{full_name}:", "]" do
|
||||
q.breakable
|
||||
q.text "includes:"
|
||||
q.breakable
|
||||
|
|
|
@ -22,5 +22,10 @@ class RDoc::SingleClass < RDoc::ClassModule
|
|||
"class << #{full_name}"
|
||||
end
|
||||
|
||||
def pretty_print q # :nodoc:
|
||||
q.group 2, "[class << #{full_name}", "]" do
|
||||
next
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue