Sha256: 12e1aac482e7b6394a8024fd5fe4606d020621383d56e28d69ee107b5dd00c78

Contents?: true

Size: 1.7 KB

Versions: 12

Compression:

Stored size: 1.7 KB

Contents

o:$YARD::CodeObjects::MethodObject:
@name:
match:@docstringIC:YARD::Docstring"˙Returns a <code>MatchData</code> object describing the match, or
<code>nil</code> if there was no match. This is equivalent to retrieving the
value of the special variable <code>$~</code> following a normal match.

   /(.)(.)(.)/.match("abc")[2]   #=> "b"
:@objectu:YARD::StubProxyRegexp#match:
@summary0:	@all"1Returns a <code>MatchData</code> object describing the match, or
<code>nil</code> if there was no match. This is equivalent to retrieving the
value of the special variable <code>$~</code> following a normal match.

   /(.)(.)(.)/.match("abc")[2]   #=> "b"


@overload match(str)
  @return [MatchData, nil]:@ref_tags[:
@tags[o:YARD::Tags::OverloadTag
;
u;Regexp#match;;;IC;	"
;
u;Regexp#match;0;
"@return [MatchData, nil];[;[o:YARD::Tags::Tag
;
0;0:@types["MatchData"nil:
@text":@tag_name"return;0:@parameters[[:str0;0:@signature"match(str);"
overload:@current_file_has_commentsF:@scope:
instance;[:@docstring_extra0:@files[["	re.c0:@namespaceu;Regexp:
@path"Regexp#match;[:@visibility:public:@source"5/*
 *  call-seq:
 *     rxp.match(str)   => matchdata or nil
 *  
 *  Returns a <code>MatchData</code> object describing the match, or
 *  <code>nil</code> if there was no match. This is equivalent to retrieving the
 *  value of the special variable <code>$~</code> following a normal match.
 *     
 *     /(.)(.)(.)/.match("abc")[2]   #=> "b"
 */

static VALUE
rb_reg_match_m(re, str)
    VALUE re, str;
{
    VALUE result = rb_reg_match(re, str);

    if (NIL_P(result)) return Qnil;
    result = rb_backref_get();
    rb_match_busy(result);
    return result;
}:@source_type:c

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
pry-doc-0.4.4 lib/pry-doc/core_docs_18/objects/Regexp/match_i.dat
pry-doc-0.4.3 lib/pry-doc/core_docs_18/objects/Regexp/match_i.dat
pry-doc-0.4.2 lib/pry-doc/core_docs_18/objects/Regexp/match_i.dat
pry-doc-0.4.1 lib/pry-doc/core_docs_18/objects/Regexp/match_i.dat
pry-doc-0.4.0 lib/pry-doc/core_docs_18/objects/Regexp/match_i.dat
pry-doc-0.3.0 lib/pry-doc/core_docs_18/objects/Regexp/match_i.dat
pry-doc-0.2.4pre1 lib/pry-doc/core_docs_18/objects/Regexp/match_i.dat
pry-doc-0.2.3pre1 lib/pry-doc/core_docs_18/objects/Regexp/match_i.dat
pry-doc-0.2.1 lib/pry-doc/core_docs_18/objects/Regexp/match_i.dat
pry-doc-0.2.0 lib/pry-doc/core_docs_18/objects/Regexp/match_i.dat
pry-doc-0.1.5pre1 lib/pry-doc/core_docs_18/objects/Regexp/match_i.dat
pry-0.6.9pre1-i386-mingw32 lib/pry/core_docs_18/objects/Regexp/match_i.dat