From: patrick-may@... (Patrick May) Date: 2002-05-31T05:25:01+09:00 Subject: Re: is this a bug or is it behavior of which I am not aware? ts wrote in message news:<200205300828.g4U8SLp23123@moulon.inra.fr>... > >>>>> "P" == Patrick May writes: > > P> puts [].find( '() -').inspect > > #find can take an optional argument which is executed if no values are > found. > > This optional parameter must respond to #call, or can be a String which is > evaled. ruby return nil in this case Thanks Guy, this explains the error message. 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. Does this example work in more recent versions of Ruby (1.7.x)? Thanks, ~ Patrick