From: Paul Brannan Date: 2001-09-11T22:45:57+09:00 Subject: [ruby-talk:21141] Re: Char Class On Tue, 11 Sep 2001, Jonathan Brannan wrote: > Just wondering if there is any reason there is no Char class. It would seem > much cleaner to do alot of things with Char, and being able to cast between > int, char, and string quicky. like if you did something = string[x], which > retruns a number i would think somthing.to_char would be something that > should exist.... Here I think Ruby is showing some of its C roots? All string elements in Ruby are integers. Check out Integer#chr for converting integers back to strings. There's been some discussion on this ML before; see [ruby-talk:16982]. Paul