“Hello World”.each_char.with_index {|c, i|
puts “#{i}: #{c}”}
I don’t quite understand where does the index come from. Does any String object in ruby come automatically with an attached index or is the my string being converted to an array by the #.each_char.with_index methods?