From: Josh Cheek Date: 2011-05-27T03:12:53+09:00 Subject: Re: Method that mutates object --90e6ba53a6c4808d6c04a431c410 Content-Type: text/plain; charset=ISO-8859-1 On Thu, May 26, 2011 at 12:41 PM, Chad Perrin wrote: > On Fri, May 27, 2011 at 12:00:43AM +0900, jay s. wrote: >> >> Just for clarification, this is by no means a homework assignment. I am >> new to Ruby and I'm trying to get a better grasp on how Ruby handles >> mutation. I actually think at this point I'll try looking at Ruby's >> source code and see how String#replace is implemented. Maybe I'm just >> over complicating my question. > > For that, you might want to look at the source for String#replace in the > Rubinius implementation of Ruby. > > https://github.com/evanphx/rubinius > > -- > Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] > Since it took me about 10 minutes to look up, here is the actual link: https://github.com/evanphx/rubinius/blob/84264ce515d64d2d1c7faf4c8cefa1cb610a4b41/kernel/common/string.rb#L1301-1325 --90e6ba53a6c4808d6c04a431c410--