From: Robert Klemme Date: 2006-02-16T19:43:27+09:00 Subject: Re: why does this freeze not work? konsu wrote: > thank you. i understand. > > then attr_accessor seems to be the only way. but one can always > re-open my object and change the @id attribute... that is why i > wanted to freeze the reference variable and not the object itself. In your case simply change it to attr_reader. That way the field will be set in the constructor and cannot be changed from the outside. No freezer needed. robert