method

next

v1_8_7_330 - Show latest stable - Class: Integer
next()
public

Returns the Integer equal to int + 1.

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