M
Michael W. Ryder
I was looking for a way to iterate through the ascii values and was
trying to get it to not go from "9" to "10" or "Z" to "AA". Evidently
the string method .next always returns digits for digits and letters for
letters. I could do something like:
a = "9"
b = ""
b << a[0].next => "["
but this seems overly complicated. I have to initialize b or Ruby
complains of an undefined local variable or method and other methods of
string assignment return "91".
trying to get it to not go from "9" to "10" or "Z" to "AA". Evidently
the string method .next always returns digits for digits and letters for
letters. I could do something like:
a = "9"
b = ""
b << a[0].next => "["
but this seems overly complicated. I have to initialize b or Ruby
complains of an undefined local variable or method and other methods of
string assignment return "91".