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

replace

        # String.replace

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

---

Replaces the contents of `self` with the contents of `other_string`:

    s = 'foo'        # => "foo"
    s.replace('bar') # => "bar"


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

Replaces the contents of `self` with the contents of `other_string`:

    s = 'foo'        # => "foo"
    s.replace('bar') # => "bar"



      

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.