DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Convert Between Characters And Values
// character to ASCII value: use ?
?a # => 97 ?\n # => 10
// string to integer: use 
'a' # => 97 'hallo' # => 97
// integer / number to character: use .chr
97.chr # => "a" 10.chr # => "\n"
//more info: "Ruby Cookbook", O'Reilly