James Gray wrote:
> On Sep 12, 2008, at 5:25 PM, Nick Bo wrote:
> 
>> my issue is I dont know how to take the character
>> and convert it into ASCII.
> 
> In Ruby 1.8 you can just index into the String and Ruby will return
> the character value:
> 
>  >> "a"[0]
> => 97
> 
> Hope that helps and welcome to Ruby!
> 
> James Edward Gray II

Just adding this for the sake of being complete:

p ?A

=> 65
-- 
Posted via http://www.ruby-forum.com/.