Issue #17210 has been reported by marcandre (Marc-Andre Lafortune).

----------------------------------------
Feature #17210: More readable and useful `Set#inspect`
https://bugs.ruby-lang.org/issues/17210

* Author: marcandre (Marc-Andre Lafortune)
* Status: Open
* Priority: Normal
* Assignee: knu (Akinori MUSHA)
----------------------------------------
I would like to change `Set#inspect`/`to_s`:

```ruby
# before
puts Set[1,2,3] # => "#<Set: {1, 2, 3}>"

# after
puts Set[1,2,3] # => "Set[1, 2, 3]"
```

This output is shorter, readable, and has the property that it corresponds to Ruby code



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>