From: Phlip Date: 2009-03-09T21:23:12+09:00 Subject: Re: Where's the best version of Hash#pass and Hash#block? Matthias Reitinger wrote: > Here's my shot at it: > > class Hash > def pass(*keys) > Hash[select {|k,v| keys.include? k}] > end > > def block(*keys) > reject {|k,v| keys.include? k} > end > end Dude that's so lean I'm tossing facets and going with it. Tx!