1
0
Fork 0
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:
Nobuyoshi Nakada 2022-03-13 21:14:54 +09:00 committed by git
parent 2af8b04eca
commit 416c63c118
3 changed files with 7 additions and 2 deletions

View file

@ -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

View file

@ -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

View file

@ -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