Project

General

Profile

« Previous | Next » 

Revision 256c8886

Added by nobu (Nobuyoshi Nakada) over 6 years ago

strscan.c: add MatchData-like methods

  • ext/strscan/strscan.c: added size, captures and values_at
    to StringScanner, shorthands of accessing the matched data.
    based on the patch by apeiros (Stefan Rusterholz) at
    [ruby-core:20412]. [Feature #836]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60929 b2dd03c8-39d4-4d8f-98ff-823fe69b080e