kakakakakku blog

Weekly Tech Blog : Keep on Learning 👍

Rubyで指定した文字列長の文字列を生成する

簡単!

irb(main):001:0> 'x' * 100
=> "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"