From: nobu.nokada@... Date: 2002-05-31T09:50:19+09:00 Subject: Re: is this a bug or is it behavior of which I am not aware? Hi, At Fri, 31 May 2002 05:25:01 +0900, Patrick May wrote: > Still, I'm confused as to why find would think that '() -' in the > above example was anything other than the object to be found. That is > what seems buggy to me. $ ruby -e '[1,2].find("() -")' -e:1:in `find': no block given (LocalJumpError) from -e:1:in `each' from -e:1:in `find' from -e:1 find passes each element to the block, and returns the element when the result is true(other than nil/false). -- Nobu Nakada