Hash#select returns an array but Hash#reject returns a hash

Hi --

···

On Wed, 2 Jul 2008, Robert Dober wrote:

On Wed, Jul 2, 2008 at 4:07 AM, David A. Black <dblack@rubypal.com> wrote:

It depends on the class, though. Neither File#select nor File#reject
is going to be return a File object.

OMG, but are these names really baring the same semantic meaning?

It's all Enumerable-based, ultimately, though some classes do
overrides.

David

--
Rails training from David A. Black and Ruby Power and Light:
   Intro to Ruby on Rails July 21-24 Edison, NJ
   Advancing With Rails August 18-21 Edison, NJ
See http://www.rubypal.com for details and updates!