From: Adam Prescott Date: 2011-12-01T04:26:51+09:00 Subject: Re: Stupid question --14dae9340b2b90d71504b2f8b78f Content-Type: text/plain; charset=UTF-8 On Wed, Nov 30, 2011 at 19:23, Dave Aronson wrote: > If you split on an empty delimiter, you get the characters > individually. E.g., "12345".split('') gives you ["1", "2", "3", "4", > "5"]. > You can do it with #chars, too. "2011".chars.inject(0) { |a, b| a + b.to_i } --14dae9340b2b90d71504b2f8b78f--