From 352081dbbf22b968830848c2fb735d43530d3329 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sun, 5 Oct 2025 00:06:25 +0900 Subject: [PATCH] Do not override the methods in set.rb These methods are defined for built-in `Set` class on Ruby 3.5. --- lib/pp.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pp.rb b/lib/pp.rb index f10fe7f..0e55441 100644 --- a/lib/pp.rb +++ b/lib/pp.rb @@ -453,11 +453,11 @@ def pretty_print(pp) # :nodoc: } } } - end + end unless method_defined?(:pretty_print) def pretty_print_cycle(pp) # :nodoc: pp.text sprintf('#', empty? ? '' : '...') - end + end unless method_defined?(:pretty_print_cycle) end class << ENV # :nodoc: