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

length

        # String.length

(from ruby core)
---
    length -> integer

---

Returns the count of characters (not bytes) in `self`:

    "\x80\u3042".length # => 2
    "hello".length # => 5

String#size is an alias for String#length.

Related: String#bytesize.



      

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.