method

succ

ruby latest stable - Class: Fixnum

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2_2_9) is shown here.

succ()
public

Returns the Integer equal to int + 1.

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