This is a Ruby tree! It shows every object from the Ruby Programming Language in a tree format.

replace

        # Array.replace

(from ruby core)
---
    replace(p1)

---

Replaces the content of `self` with the content of `other_array`;
returns `self`:
    a = [:foo, 'bar', 2]
    a.replace(['foo', :bar, 3]) # => ["foo", :bar, 3]


(This method is an alias for Array#initialize_copy.)

Replaces the content of `self` with the content of `other_array`;
returns `self`:
    a = [:foo, 'bar', 2]
    a.replace(['foo', :bar, 3]) # => ["foo", :bar, 3]



      

This is MURDOC! A Ruby documentation browser inspired by Smalltalk-80. It allows you to learn about Ruby by browsing through its class hierarchies, and see any of its methods.