D
Darryl Brown
Hello All,
It is possible to increment a string as follows:
irb(main):001:0> x = 'a'
=> "a"
irb(main):002:0> x.succ
=> "b"
irb(main):003:0> x.next
=> "b"
Is there a method to decrement a string?
Thanks,
Darryl
It is possible to increment a string as follows:
irb(main):001:0> x = 'a'
=> "a"
irb(main):002:0> x.succ
=> "b"
irb(main):003:0> x.next
=> "b"
Is there a method to decrement a string?
Thanks,
Darryl