if each loop ruby code example Example: ruby each do method array.each do |item| puts "The current array item is: #{item}" end