Sha256: 6dab0898af2e745cd134571a4a28acd7f896874bb5a6ed7b97e08bd54b68bb97

Contents?: true

Size: 1.85 KB

Versions: 12

Compression:

Stored size: 1.85 KB

Contents

o:$YARD::CodeObjects::MethodObject:
@name:at:@docstringIC:YARD::Docstring"]Returns the element at _index_. A
negative index counts from the end of _self_.  Returns +nil+
if the index is out of range. See also <code>Array#[]</code>.
(<code>Array#at</code> is slightly faster than <code>Array#[]</code>,
as it does not accept ranges and so on.)

   a = [ "a", "b", "c", "d", "e" ]
   a.at(0)     #=> "a"
   a.at(-1)    #=> "e"
:@objectu:YARD::StubProxy
Array#at:
@summary0:	@all"‹Returns the element at _index_. A
negative index counts from the end of _self_.  Returns +nil+
if the index is out of range. See also <code>Array#[]</code>.
(<code>Array#at</code> is slightly faster than <code>Array#[]</code>,
as it does not accept ranges and so on.)

   a = [ "a", "b", "c", "d", "e" ]
   a.at(0)     #=> "a"
   a.at(-1)    #=> "e"


@overload at(index)
  @return [Object, nil]:@ref_tags[:
@tags[o:YARD::Tags::OverloadTag
;
u;
Array#at;;;IC;	"
;
u;
Array#at;0;
"@return [Object, nil];[;[o:YARD::Tags::Tag
;
0;0:@types["Object"nil:
@text":@tag_name"return;0:@parameters[[:
index0;0:@signature"at(index);"
overload:@current_file_has_commentsF:@scope:
instance;[:@docstring_extra0:@files[["array.c0:@namespaceu;
Array:
@path"
Array#at;[:@visibility:public:@source")/* 
 *  call-seq:
 *     array.at(index)   ->   obj  or nil
 *
 *  Returns the element at _index_. A
 *  negative index counts from the end of _self_.  Returns +nil+
 *  if the index is out of range. See also <code>Array#[]</code>.
 *  (<code>Array#at</code> is slightly faster than <code>Array#[]</code>,
 *  as it does not accept ranges and so on.)
 *
 *     a = [ "a", "b", "c", "d", "e" ]
 *     a.at(0)     #=> "a"
 *     a.at(-1)    #=> "e"
 */

static VALUE
rb_ary_at(ary, pos)
    VALUE ary, pos;
{
    return rb_ary_entry(ary, NUM2LONG(pos));
}:@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/Array/at_i.dat
pry-doc-0.4.3 lib/pry-doc/core_docs_18/objects/Array/at_i.dat
pry-doc-0.4.2 lib/pry-doc/core_docs_18/objects/Array/at_i.dat
pry-doc-0.4.1 lib/pry-doc/core_docs_18/objects/Array/at_i.dat
pry-doc-0.4.0 lib/pry-doc/core_docs_18/objects/Array/at_i.dat
pry-doc-0.3.0 lib/pry-doc/core_docs_18/objects/Array/at_i.dat
pry-doc-0.2.4pre1 lib/pry-doc/core_docs_18/objects/Array/at_i.dat
pry-doc-0.2.3pre1 lib/pry-doc/core_docs_18/objects/Array/at_i.dat
pry-doc-0.2.1 lib/pry-doc/core_docs_18/objects/Array/at_i.dat
pry-doc-0.2.0 lib/pry-doc/core_docs_18/objects/Array/at_i.dat
pry-doc-0.1.5pre1 lib/pry-doc/core_docs_18/objects/Array/at_i.dat
pry-0.6.9pre1-i386-mingw32 lib/pry/core_docs_18/objects/Array/at_i.dat