Project

General

Profile

Actions

Bug #21377

open

core Set#inspect does not use inherited class name

Added by Ethan (Ethan -) 3 days ago. Updated 2 days ago.

Status:
Open
Assignee:
-
Target version:
-
ruby -v:
ruby 3.5.0dev (2025-05-26T17:42:35Z master 909a0daab6) +PRISM [x86_64-darwin22]
[ruby-core:122306]

Description

Following #21216, Set#inspect stopped using self.class.name and just uses 'Set' now.

class MySet < Set; end
MySet.new.inspect
# before: #<MySet: {}>
# now: #<Set: {}>
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0