From: Matthias Reitinger Date: 2009-03-09T22:34:47+09:00 Subject: Re: Where's the best version of Hash#pass and Hash#block? Thomas Sawyer wrote: > #pass doesn't seem to work, at least not in 1.8. Oops, my fault. I wasn't aware of the fact that I tested it only with Ruby 1.8.7 (it works there). With Ruby 1.8.6 it fails miserably. > More importantly, Facets implementation is the way it is b/c it is > fast. Code elegance is nice, but you won't be looking at the code when > you are using it. I must admit that execution speed wasn't one of my priorities for this snippet. But your point is very valid--I'd also recommend sticking with the Facets implementation if speed is of any concern. -Matthias -- Posted via http://www.ruby-forum.com/.