Mega Code Archive
Categories
/
Ruby
/
Number
Get the next integer with next (or its alias succ)
-24.next # => -23 1.next # => 2 999.next # => 1000