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

scrub

        # String.scrub

(from ruby core)
---
    str.scrub -> new_str
    str.scrub(repl) -> new_str
    str.scrub{|bytes|} -> new_str

---

If the string is invalid byte sequence then replace invalid bytes with
given replacement character, else returns self. If block is given,
replace invalid bytes with returned value of the block.

    "abc\u3042\x81".scrub #=> "abc\u3042\uFFFD"
    "abc\u3042\x81".scrub("*") #=> "abc\u3042*"
    "abc\u3042\xE3\x80".scrub{|bytes| '<'+bytes.unpack1('H*')+'>' } #=> "abc\u3042<e380>"



      

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.