Bug #64 [ruby-reference-manual:841]

MatchData#values_at の説明

Added by Ken DATE 395 days ago. Updated 150 days ago.

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

Revision 2909
Added by okkez 360 days ago

fixed #64

History

07/08/2008 05:40 PM - okkez _

  • Assigned to set to okkez _

07/08/2008 05:47 PM - okkez _

  • Status changed from Open to Closed
  • % Done changed from 0 to 100
Applied in changeset r2909.

Also available in: Atom PDF