This project is archived and is in readonly mode.

#971 ✓resolved
7rans

Hash#slice! Return Value

Reported by 7rans | September 4th, 2008 @ 07:15 PM | in 2.x

This patch makes Hash#slice! return a difference Hash of the key-value pairs removed, rather than returning the same thing as Hash#slice. This is analogous to how Array#slice! works, and generally seems to be the "Ruby Way". It's better b/c it provides more information about what happens.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Attachments

Referenced by

Pages