Convert a string to a character array
y = 'testing'.scan(/./) y.each do |c| puts c end
DZone Snippets > jrobertson > character
11381 users tagging and storing useful source code snippets
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
James Robertson http://www.r0bertson.co.uk
y = 'testing'.scan(/./) y.each do |c| puts c end