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

gsub

        # String.gsub

(from ruby core)
---
    gsub(pattern, replacement)   -> new_string
    gsub(pattern) {|match| ... } -> new_string
    gsub(pattern)                -> enumerator

---

Returns a copy of `self` with all occurrences of the given `pattern`
replaced.

See [Substitution Methods](#class-String-label-Substitution+Methods).

Returns an Enumerator if no `replacement` and no block given.

Related: String#sub, String#sub!, String#gsub!.



      

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.