On Oct 11, 2007, at 24:07 , Charles Oliver Nutter wrote:

> Rdoc is here:
>
> ~/NetBeansProjects/jruby $ ri MatchData#select
> -------------------------------------------------------  
> MatchData#select
>      mtch.select([index]*)   => array
> ---------------------------------------------------------------------- 
> --
>      Uses each _index_ to access the matching values, returning an  
> array
>      of the corresponding matches.
>
>         m = /(.)(.)(\d+)(\d)/.match("THX1138: The Movie")
>         m.to_a               #=> ["HX1138", "H", "X", "113", "8"]
>         m.select(0, 2, -2)   #=> ["HX1138", "X", "113"]
>
> But the example given doesn't run, and the arity of select is -1  
> instead of zero as would be indicated by the resulting error.

History says it used to run, but now uses yield.  The documentation  
is out of date.

--
Poor workers blame their tools. Good workers build better tools. The
best workers get their tools to do the work for them. -- Syndicate Wars