ruby way to repeat string 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