method

next

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

Returns the Integer equal to int + 1.

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