diff options
Diffstat (limited to 'lib/set.rb')
-rw-r--r-- | lib/set.rb | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/set.rb b/lib/set.rb index a19a4f3b55..e9c6931b14 100644 --- a/lib/set.rb +++ b/lib/set.rb @@ -418,14 +418,7 @@ class Set def pretty_print(pp) # :nodoc: pp.text sprintf('#<%s: {', self.class.name) pp.nest(1) { - first = true - each { |o| - if first - first = false - else - pp.text "," - pp.breakable - end + pp.seplist(self) { |o| pp.pp o } } |