The find method on an array takes a block and returns an enumerator if =
no block is given.
The value you pass to the find method is not the value you want to find =
but the value which is returned if no block evaluates to true.

Lars

Am 10.05.2011 um 20:48 schrieb Roger Pack:

> Hello all.
> I would have expected that
>=20
> [1,2,3].find(3)
>=20
> just return me the element 3, not an enumerator, since it will at most
> return me one item, so it doesn't seem very "enumerable" to me (at =
most
> one item).
>=20
> Thoughts?
> -r
>=20
> --=20
> Posted via http://www.ruby-forum.com/.
>=20