On 09/20/2010 11:40 AM, F. Senault wrote:
> Le 20 septembre 20:17, Joel VanderWerf a ˝─rit :
>
>> a.each_run(proc {|prev, s| prev.succ == s}) do |run|
>
> There's a catch with succ :
>
>>> "S9".succ
> =>  "T0"
>
> Definitely not what I want !  :)
>
> Fred

Ow! Yup. Maybe you could use this:

 >> "S9".sub(/\d+$/) {|digits| digits.succ}
=> "S10"