This project is archived and is in readonly mode.

#35 ✓invalid
Brandon Keepers

Added Hash#only for picking out specific attributes

Reported by Brandon Keepers | April 22nd, 2008 @ 02:35 PM

I've added Hash#only (opposite of Hash#except) for picking specific attributes out of a hash:

{:a => 1, :b => 2, :c => 3}.only(:a, :c)

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=""></a>

People watching this ticket


Referenced by