succ() public

Returns the Integer equal to int + 1, same as Fixnum#next.

1.next      #=> 2
(-1).next   #=> 0
Show source
Register or log in to add new notes.