str.each_char {|cstr| block } â str
str.each_char â an_enumerator
str.each_char â an_enumerator
Instance Public methods
Passes each character in str to the given block, or returns an enumerator if no block is given.
"hello".each_char {|c| print c, ' ' }
produces:
h e l l o
Please login to continue.