how to repeat a string in ruby n times code example
Example: how to repeat a string n times in ruby
30.times {
# do something
}
# or, the equivalent
30.times do
# do something
end
30.times {
# do something
}
# or, the equivalent
30.times do
# do something
end