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; "