From: Yusuke Endoh Date: 2010-03-20T03:07:58+09:00 Subject: [ruby-core:28802] [Feature #1873] MatchData#[]: Omits All But Last Captures Corresponding to the Same Named Group Issue #1873 has been updated by Yusuke Endoh. Hi, > How about overloading MatchData#values_at ? Why do you attempt to reuse existing method? :-/ I think it is better to introduce new method like MatchData#all_values. > >> 'haystack'.match(/(?ay).+(?a(?ck))/).values_at(:seek, 'h') > ['ck','ay','ack'] I expect values_at returns an array whose length is equal to the number of arguments. By the way, I think it is strange (or even a bug) for MatchData#values_at to reject Symbols. -- Yusuke ENDOH ---------------------------------------- http://redmine.ruby-lang.org/issues/show/1873 ---------------------------------------- http://redmine.ruby-lang.org