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

chr

        # Integer.chr

(from ruby core)
---
    chr           -> string
    chr(encoding) -> string

---

Returns a 1-character string containing the character represented by the
value of `self`, according to the given `encoding`.

    65.chr                   # => "A"
    0..chr                   # => "\x00"
    255.chr                  # => "\xFF"
    string = 255.chr(Encoding::UTF_8)
    string.encoding          # => Encoding::UTF_8

Raises an exception if `self` is negative.

Related: Integer#ord.



      

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.