Skip to content

Commit 727f58b

Browse files
committed
Rename pretty_print alias to summary
This stops clobbering the `Object#pretty_print` mixin from the `pp` gem, which is needed to correctly print a `Checkable` as a return value in IRB. If you used `pretty_print`, use `to_s_pretty` or `summary` instead.
1 parent 7ab9518 commit 727f58b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/github-pages-health-check/checkable.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ def to_s
4848
printer.simple_string
4949
end
5050

51-
def to_s_pretty(*)
51+
def to_s_pretty
5252
printer.pretty_print
5353
end
54-
alias pretty_print to_s_pretty
54+
alias summary to_s_pretty
5555

5656
private
5757

0 commit comments

Comments
 (0)