From: Einar Date: 2006-03-10T00:23:42+09:00 Subject: Re: [Newbie] Immutable objects James Edward Gray II wrote: > On Mar 9, 2006, at 6:23 AM, Einar H�st wrote: > > As a Ruby rule of thumb, you make an immutable object just by providing > no methods to change the instance data. > > Technically, there are ways around that, but there are also ways around > freeze() . Don't lose a lot of sleep over these though. If people > don't follow your API, they know they are breaking the rules and they > are responsible for the consequences. > > James Edward Gray II > Thanks - that answers my real question, 'how do you make an object immutable in Ruby'. It's not at all important in this app, which is just a hobby project for my own amusement and education. - Einar