method

next

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

Returns the Integer equal to int + 1.

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