From: Alex Young Date: 2006-08-10T21:24:26+09:00 Subject: Re: extending String call with a #copy!(n) Daniel DeLorme wrote: > Alex Young wrote: >>> Use << (or concat). >>> >> or sub!. > > replace would be more efficient: > class String > alias copy * > def copy!(n) > replace(self*n) > end > end > Oh yes. So it would :-) -- Alex