Ответ 1
Да, times
дает счетчик:
4.times do |count|
puts "this is the count #{count}"
end
Для ruby. есть ли счетчик или мне нужно сделать следующее
count = 0
4.times do
puts "this is the count #{count}"
count = count+1
Да, times
дает счетчик:
4.times do |count|
puts "this is the count #{count}"
end