From: Ricardo Panaggio Date: 2010-07-22T12:13:01+09:00 Subject: Re: Text to Binary each_char, to_i, to_s, [], maybe less, maybe more, should do the job. You should try to read String, Numeric, Integer, ... docs. It would help a lot On Thu, Jul 22, 2010 at 00:03, Umm Whyshouldisay wrote: > Ricardo Panaggio wrote: >> See String#[], String#split, String#match and a much more on String >> http://ruby-doc.org/core/classes/String.html > > No, what I mean is, I'm trying to translate text to ternary. So, I want > to check EACH AND EVERY individual character and, depending on ASCII > values, turn the characters into the number in ternary that represents > that ASCII value. So, for example, in hex, an ! mark is 21. In decimal, > that's 33. In ternary, that's 001020. I would keep going on in this > manner and translate every single character into its respective ASCII > number (in ternary). > > You still with me here? XD > -- > Posted via http://www.ruby-forum.com/. > >