From: Just Another Victim of the Ambient Morality Date: 2007-06-19T11:25:03+09:00 Subject: Re: How to repeat string patterns in Ruby? "Mark Day" wrote in message news:62A0BA82-71DA-46D2-979C-A40B58B5A4CD@mac.com... > On Jun 18, 2007, at 5:55 PM, Just Another Victim of the Ambient Morality > wrote: > >> tabs = '' >> num_tabs.times { tabs << "\t" } >> >> Is there a more succinct, more Ruby-esque way to do this? > > "\t" * num_tabs Thank you, this is exactly what I am looking for!