how to return first character in string, array, iteration, ruby code example Example: iterate over string ruby a = 'hello, world' a.each_char { |c| puts c }