Actions
Feature #17210
openMore readable and useful `Set#inspect`
Feature #17210:
More readable and useful `Set#inspect`
Description
I would like to change Set#inspect
/to_s
:
# 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
Actions