Sha256: 87fec8ca6ea181756ae590537f66e5bd9833ff22ec79d843038eeb714fa4a2eb

Contents?: true

Size: 1.65 KB

Versions: 12

Compression:

Stored size: 1.65 KB

Contents

o:$YARD::CodeObjects::MethodObject:
@name:end:@docstringIC:YARD::Docstring"ÓReturns the offset of the character immediately following the end of the
<em>n</em>th element of the match array in the string.

   m = /(.)(.)(\d+)(\d)/.match("THX1138.")
   m.end(0)   #=> 7
   m.end(2)   #=> 3
:@objectu:YARD::StubProxyMatchData#end:
@summary0:	@all"úReturns the offset of the character immediately following the end of the
<em>n</em>th element of the match array in the string.

   m = /(.)(.)(\d+)(\d)/.match("THX1138.")
   m.end(0)   #=> 7
   m.end(2)   #=> 3


@overload end(n)
  @return [Integer]:@ref_tags[:
@tags[o:YARD::Tags::OverloadTag
;
u;MatchData#end;;;IC;	"
;
u;MatchData#end;0;
"@return [Integer];[;[o:YARD::Tags::Tag
;
0;0:@types["Integer:
@text":@tag_name"return;0:@parameters[[:n0;0:@signature"end(n);"
overload:@current_file_has_commentsF:@scope:
instance;[:@docstring_extra0:@files[["	re.c0:@namespaceu;MatchData:
@path"MatchData#end;[:@visibility:public:@source"q/*
 *  call-seq:
 *     mtch.end(n)   => integer
 *  
 *  Returns the offset of the character immediately following the end of the
 *  <em>n</em>th element of the match array in the string.
 *     
 *     m = /(.)(.)(\d+)(\d)/.match("THX1138.")
 *     m.end(0)   #=> 7
 *     m.end(2)   #=> 3
 */

static VALUE
match_end(match, n)
    VALUE match, n;
{
    int i = NUM2INT(n);

    match_check(match);
    if (i < 0 || RMATCH(match)->regs->num_regs <= i)
    rb_raise(rb_eIndexError, "index %d out of matches", i);

    if (RMATCH(match)->regs->beg[i] < 0)
    return Qnil;

    return INT2FIX(RMATCH(match)->regs->end[i]);
}:@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/MatchData/end_i.dat
pry-doc-0.4.3 lib/pry-doc/core_docs_18/objects/MatchData/end_i.dat
pry-doc-0.4.2 lib/pry-doc/core_docs_18/objects/MatchData/end_i.dat
pry-doc-0.4.1 lib/pry-doc/core_docs_18/objects/MatchData/end_i.dat
pry-doc-0.4.0 lib/pry-doc/core_docs_18/objects/MatchData/end_i.dat
pry-doc-0.3.0 lib/pry-doc/core_docs_18/objects/MatchData/end_i.dat
pry-doc-0.2.4pre1 lib/pry-doc/core_docs_18/objects/MatchData/end_i.dat
pry-doc-0.2.3pre1 lib/pry-doc/core_docs_18/objects/MatchData/end_i.dat
pry-doc-0.2.1 lib/pry-doc/core_docs_18/objects/MatchData/end_i.dat
pry-doc-0.2.0 lib/pry-doc/core_docs_18/objects/MatchData/end_i.dat
pry-doc-0.1.5pre1 lib/pry-doc/core_docs_18/objects/MatchData/end_i.dat
pry-0.6.9pre1-i386-mingw32 lib/pry/core_docs_18/objects/MatchData/end_i.dat