PATH:
opt
/
alt
/
ruby18
/
share
/
ri
/
1.8
/
system
/
Array
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Element Assignment---Sets the element at <em>index</em>, or replaces a subarray starting at <em>start</em> and continuing for <em>length</em> elements, or replaces a subarray specified by <em>range</em>. If indices are greater than the current capacity of the array, the array grows automatically. A negative indices will count backward from the end of the array. Inserts elements if <em>length</em> is zero. If <tt>nil</tt> is used in the second and third form, deletes elements from <em>self</em>. An <tt>IndexError</tt> is raised if a negative index points past the beginning of the array. See also <tt>Array#push</tt>, and <tt>Array#unshift</tt>. - !ruby/struct:SM::Flow::VERB body: " a = Array.new\n a[4] = "4"; #=> [nil, nil, nil, nil, "4"]\n a[0, 3] = [ 'a', 'b', 'c' ] #=> ["a", "b", "c", nil, "4"]\n a[1..2] = [ 1, 2 ] #=> ["a", 1, 2, nil, "4"]\n a[0, 2] = "?" #=> ["?", 2, nil, "4"]\n a[0..2] = "A" #=> ["A", "4"]\n a[-1] = "Z" #=> ["A", "Z"]\n a[1..-1] = nil #=> ["A"]\n" full_name: Array#[]= is_singleton: false name: "[]=" params: | array[index] = obj -> obj array[start, length] = obj or an_array or nil -> obj or an_array or nil array[range] = obj or an_array or nil -> obj or an_array or nil visibility: public
[-] pack-i.yaml
[edit]
[-] frozen%3f-i.yaml
[edit]
[-] reject-i.yaml
[edit]
[-] drop-i.yaml
[edit]
[-] %3c%3d%3e-i.yaml
[edit]
[-] size-i.yaml
[edit]
[-] compact%21-i.yaml
[edit]
[-] drop_while-i.yaml
[edit]
[-] product-i.yaml
[edit]
[-] concat-i.yaml
[edit]
[-] collect%21-i.yaml
[edit]
[-] pretty_print_cycle-i.yaml
[edit]
[-] flatten%21-i.yaml
[edit]
[-] fetch-i.yaml
[edit]
[-] reverse%21-i.yaml
[edit]
[-] %2a-i.yaml
[edit]
[-] to_ary-i.yaml
[edit]
[-] indices-i.yaml
[edit]
[-] empty%3f-i.yaml
[edit]
[-] to_yaml-i.yaml
[edit]
[-] values_at-i.yaml
[edit]
[-] last-i.yaml
[edit]
[-] hash-i.yaml
[edit]
[-] join-i.yaml
[edit]
[-] pretty_print-i.yaml
[edit]
[-] yaml_initialize-i.yaml
[edit]
[-] %5b%5d%3d-i.yaml
[edit]
[-] assoc-i.yaml
[edit]
[-] find_index-i.yaml
[edit]
[-] shelljoin-i.yaml
[edit]
[-] %2d-i.yaml
[edit]
[-] flatten-i.yaml
[edit]
[-] %3c%3c-i.yaml
[edit]
[-] cdesc-Array.yaml
[edit]
[-] pop-i.yaml
[edit]
[-] transpose-i.yaml
[edit]
[-] take-i.yaml
[edit]
[-] index-i.yaml
[edit]
[-] insert-i.yaml
[edit]
[-] include%3f-i.yaml
[edit]
[-] cycle-i.yaml
[edit]
[-] uniq-i.yaml
[edit]
[-] reverse_each-i.yaml
[edit]
[-] at-i.yaml
[edit]
[-] abbrev-i.yaml
[edit]
[-] initialize_copy-i.yaml
[edit]
[-] compact-i.yaml
[edit]
[-] map-i.yaml
[edit]
[-] %2b-i.yaml
[edit]
[-] inspect-i.yaml
[edit]
[-] choice-i.yaml
[edit]
[-] delete-i.yaml
[edit]
[-] unshift-i.yaml
[edit]
[-] nitems-i.yaml
[edit]
[-] uniq%21-i.yaml
[edit]
[-] combination-i.yaml
[edit]
[-] dclone-i.yaml
[edit]
[-] clear-i.yaml
[edit]
[-] each_index-i.yaml
[edit]
[-] rassoc-i.yaml
[edit]
[-] reject%21-i.yaml
[edit]
[-] push-i.yaml
[edit]
[-] %3d%3d-i.yaml
[edit]
[-] rindex-i.yaml
[edit]
[-] sort%21-i.yaml
[edit]
[-] permutation-i.yaml
[edit]
[-] %5b%5d-c.yaml
[edit]
[-] %5b%5d-i.yaml
[edit]
[-] to_a-i.yaml
[edit]
[-] take_while-i.yaml
[edit]
[-] map%21-i.yaml
[edit]
[-] collect-i.yaml
[edit]
[-] fill-i.yaml
[edit]
[-] eql%3f-i.yaml
[edit]
[-] delete_at-i.yaml
[edit]
[-] length-i.yaml
[edit]
[+]
..
[-] slice-i.yaml
[edit]
[-] delete_if-i.yaml
[edit]
[-] select-i.yaml
[edit]
[-] each-i.yaml
[edit]
[-] indexes-i.yaml
[edit]
[-] sort-i.yaml
[edit]
[-] new-c.yaml
[edit]
[-] shift-i.yaml
[edit]
[-] count-i.yaml
[edit]
[-] %26-i.yaml
[edit]
[-] %7c-i.yaml
[edit]
[-] to_s-i.yaml
[edit]
[-] replace-i.yaml
[edit]
[-] shuffle-i.yaml
[edit]
[-] slice%21-i.yaml
[edit]
[-] first-i.yaml
[edit]
[-] zip-i.yaml
[edit]
[-] shuffle%21-i.yaml
[edit]
[-] reverse-i.yaml
[edit]