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

pred

        # Integer.pred

(from ruby core)
---
    pred -> next_integer

---

Returns the predecessor of `self` (equivalent to `self - 1`):

    1.pred  #=> 0
    -1.pred #=> -2

Related: Integer#succ (successor value).



      

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.