Snippets has posted 5883 posts at DZone. View Full User Profile
// 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
Discover best practices and the most useful tools for building the ideal integration architecture.
DZone's 170th Refcard is an essential reference to Camel, an open-source, lightweight, integration library. This Refcard is authored by...