Hi --

On Wed, 2 Jul 2008, Robert Dober wrote:

> On Tue, Jul 1, 2008 at 4:24 PM, David A. Black <dblack / rubypal.com> wrote:
>> Hi --
>>
>> On Tue, 1 Jul 2008, Srijayanth Sridhar wrote:
>>
>>> On Tue, Jul 1, 2008 at 7:26 PM, Robert Dober <robert.dober / gmail.com>
>>> wrote:
>>>>
>>>> On Tue, Jul 1, 2008 at 3:42 PM, Rick DeNatale <rick.denatale / gmail.com>
>>>> wrote:
>>>> I rather agree with Rick although David has a point too.
>>>>
>>>
>>> Yeah I agree with Rick as well or I wouldn't have asked the question
>>> in the first place.
>>
>> Rick made some points about in-place changes vs. copies of Ruby
>> objects that I agree with, but that wasn't what my post was about :-)
>> See my last one too.
>>
> Actually I think the most important thing about this is, yes I know
> you guessed and you disagree, consistency;)
> But give me a chance, it can be consistent that whatever.reject.class
> == whatever.class and
> whatever.select.class == Array. That was exactly why I named my Hash
> returning methods hselect, vselect and  kselect.

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


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!