method

each_char

v1_8_7_72 - Show latest stable - Class: String
each_char()
public

Passes each character in str to the given block.

   "hello".each_char {|c| print c, ' ' }

produces:

   h e l l o