Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Ruby
how to repeat a string n times in ruby
Binu.
Programming language:
Ruby
2021-03-08 11:07:05
0
Q:
how to repeat a string n times in ruby
zeel
Code:
Ruby
2021-09-15 02:20:58
30.times { # do something } # or, the equivalent 30.times do # do something end
0
Tags
string
time
how
Related
remove ascii characters from string ruby
one line each loop ruby
ruby get substring between two characters
how to split string into characters ruby
how to turn rows into columns ruby
ruby find frequency in array self.all
iterate over string ruby
ruby replace certain character
square every digit of a number ruby
New to Communities?
Join the community