Skip to content

Commit 4b50d0b

Browse files
committed
[ruby/pp] Do not override the methods in set.rb
These methods are defined for built-in `Set` class on Ruby 3.5. ruby/pp@352081dbbf
1 parent 3407770 commit 4b50d0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/pp.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,11 +453,11 @@ def pretty_print(pp) # :nodoc:
453453
}
454454
}
455455
}
456-
end
456+
end unless method_defined?(:pretty_print)
457457

458458
def pretty_print_cycle(pp) # :nodoc:
459459
pp.text sprintf('#<Set: {%s}>', empty? ? '' : '...')
460-
end
460+
end unless method_defined?(:pretty_print_cycle)
461461
end
462462

463463
class << ENV # :nodoc:

0 commit comments

Comments
 (0)