single line each in ruby log line code example Example: one line each loop ruby cats.each { |cat| cat.name }