From: Derek Cannon Date: 2010-03-26T11:56:48+09:00 Subject: Re: Creating a gsub! method for Arrays After playing around some more, I've found a solution. For anyone who is interested, the following code works: class Array def gsub!(pattern, replacement) each { |x| x.gsub!(pattern, replacement) } end end -- Posted via http://www.ruby-forum.com/.