Ruby, jak zapętlić się przez tablicę
array = [1, 2, 3, 4, 5, 6]
array.each { |x| puts x }
Calm Chimpanzee
array = [1, 2, 3, 4, 5, 6]
array.each { |x| puts x }
# For Ruby
arr = ['a', 'b', 'c']
arr.each { |item| puts item }