Hi,

In message "Re: Ruby feature request - enum.detect_index"
    on Mon, 6 Feb 2006 00:43:20 +0900, "Ross Bamford" <rosco / roscopeco.remove.co.uk> writes:

|More generally, I'd personally like a block on 'index', such that:
|
|	foo.index("users,")
|	# => 6
|
|	foo.index { |s| s == "users," }
|	# => 6

It does so in 1.9.

							matz.