method

succ

v1_9_2_180 - Show latest stable - Class: Integer
succ()
public

Returns the Integer equal to int + 1.

1.next      #=> 2
(-1).next   #=> 0