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

getbyte

        # String.getbyte

(from ruby core)
---
    getbyte(index) -> integer

---

Returns the byte at zero-based `index` as an integer:

    s = 'abcde'  # => "abcde"
    s.getbyte(0) # => 97
    s.getbyte(1) # => 98

Related: String#setbyte.



      

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.