This project is archived and is in readonly mode.
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
-
Frederick Cheung December 19th, 2008 @ 02:28 PM
Seems reasonable to me. pushed it to my branch, hopefully will get pulled in soon
-
Pratik December 22nd, 2008 @ 03:47 AM
- Assigned user set to Frederick Cheung
-
Repository December 26th, 2008 @ 09:57 PM
- State changed from new to resolved
(from [c9d4335418823500548ad8fbc86af7c910b7644b]) MaKe Hash#slice! return removed values, akin to Array [#971 state:resolved]
Signed-off-by: Frederick Cheung frederick.cheung@gmail.com http://github.com/rails/rails/co...
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
Tags
Referenced by
- 971 Hash#slice! Return Value (from [c9d4335418823500548ad8fbc86af7c910b7644b]) MaKe Ha...