Bug #64 [ruby-reference-manual:841]
MatchData#values_at の説明
| Status : | Closed | Start : | 02/13/2008 | |
| Priority : | Normal | Due date : | ||
| Assigned to : | okkez _ | % Done : | 100% |
|
| Category : | doc | |||
| Target version : | - | |||
| reporter : | rock |
ruby_version : | 1.8,1.9 |
|
Description
MatchData#values_at の説明に 正規表現中の indexN 番目の括弧にマッチした部分文字列の配列を返します。 とありますが,「indexN 番目」って分かりにくくないですか? 「index[i] 番目」って感じ? それと,実行例の「p m.values_at(-1,-2,-3)」の結果が「["baz", "bar", "foo"]」となることについて, 説明が必要だと思います。m.values_at(-5) がどうなるかについても。
Associated revisions
fixed #64