String incrementation produces the next string in Ruby’s alphanumeric successor ordering. Call succ, also available as next, to obtain that successor. section 8.1.5
Odometer-style succession
"a".succ returns "b", "abc".succ returns "abd", and "azz".succ returns "baa". The ordering favors familiar alphabetic progression: after "z" comes "aa", rather than the ASCII character "{". section 8.1.5
>> "a".succ
=> "b"
>> "abc".succ
=> "abd"
>> "azz".succ
=> "baa"
Try these irb-sized examples to compare ordinary incrementing with rollover across alphabetic positions. section 8.1.5
This operation is useful when a program needs batch-generated unique strings, such as sequential filenames. section 8.1.5
