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

chop

        # String.chop

(from ruby core)
---
    str.chop   -> new_str

---

Returns a new String with the last character removed.  If the string
ends with `\r\n`, both characters are removed. Applying `chop` to an
empty string returns an empty string. String#chomp is often a safer
alternative, as it leaves the string unchanged if it doesn't end in a
record separator.

    "string\r\n".chop   #=> "string"
    "string\n\r".chop   #=> "string\n"
    "string\n".chop     #=> "string"
    "string".chop       #=> "strin"
    "x".chop.chop       #=> ""



      

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.