From: Gavin Kistner Date: 2006-01-05T15:27:02+09:00 Subject: Re: Can't change the value of self On Jan 1, 2006, at 5:47 PM, Hal Fulton wrote: > James Britt wrote: >> Jonathan Leighton wrote: >>> Can't change the value of self (SyntaxError) >>> self = round_to *args >>> >>> Why doesn't it work? What can I do instead? >> "Destructive" methods must alter self using that self's existing >> destructive methods. > > To which we should add: Time has no destructive methods, since > Time objects are immutable. > > But someone once created a MutableTime class -- anyone recall > who/when/where and whether it's complete? That'd be me, and it's documented at http://phrogz.net/RubyLibs/rdoc/ classes/MutableTime.html and available for download at http:// phrogz.net/RubyLibs/MutableTime.rb As to whether it's 'complete'...I dunno. I nominally labeled it v1.0.5, but who knows what that means :)