Subject: Re: Creating a gsub! method for Arrays
From: Derek Cannon <novellterminator gmail.com>
Date: Sat, 27 Mar 2010 01:35:15 +0900
References: 359686359687359700359713
In-reply-to: 359713
> Agreed. There's also
>
> require 'facets/enumerable/every'
>
> arr.every.gsub! /foo/, 'bar'
Ah, I like this way a lot. Thanks, I'll be using it.
--
Posted via http://www.ruby-forum.com/.