Mega Code Archive
Categories
/
Ruby
/
String
Iterate over all the characters using a block
thoreau = "asdfasdfasdf" thoreau.each_byte do |c| print c.chr, "/" end