From: Robert Dober Date: 2009-02-27T06:45:50+09:00 Subject: [ruby-core:22561] [Bug #1219] ostruct freeze still not stable Issue #1219 has been updated by Robert Dober. Forget this patch it is a pain, and way to complicated. Your approach was fine, all we have to do is the following: class OpenStruct def freeze @frozen ||= true super end end and now, in the write access method you have so nicely refactored, just check for @frozen instead of frozen?. Cheers Robert ---------------------------------------- http://redmine.ruby-lang.org/issues/show/1219 ---------------------------------------- http://redmine.ruby-lang.org