Subject: Re: How to repeat string patterns in Ruby?
From: Mark Day <mday mac.com>
Date: Tue, 19 Jun 2007 10:04:17 +0900
References: 256122
In-reply-to: 256122
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
-Mark