On Wed, May 11, 2011 at 10:43 AM, Brian Candler <b.candler / pobox.com> wrote:
> Robert K. wrote in post #997848:
>> (And, btw, it has been
>> that way in all versions from 1.8.6 on.)
>
> I'm pretty sure that calling Enumerable methods without a block only
> returned an Enumerator from 1.8.7. In 1.8.6 you would have gotten an
> error ('method called without a block' or words to that effect), which
> in this case would have been much more useful to the OP.

Yes, but that was not the point.  I was explicitly talking about the
semantics of the argument to #find.

http://www.ruby-doc.org/core-1.8.6/classes/Enumerable.html#M001088
http://www.ruby-doc.org/core-1.8.7/classes/Enumerable.html#M001147
http://www.ruby-doc.org/core/classes/Enumerable.html#M001484

Cheers

robert

-- 
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/