Robert Dober wrote: > On Tue, Feb 26, 2008 at 4:52 PM, James Gray <james / grayproductions.net> wrote: >> On Feb 26, 2008, at 9:45 AM, Jones, Brian - McClatchy Interactive wrote: >> >> > I'd be at least a little interested in potentially offering developers >> > the chance to 'lock' their classes from monkey patches. >> >> There are probably ways around this, but: > Hmm I do not think that one can overrule freeze; I never found a way, > anyone else? > Cheers > Robert You can monkeypatch Class#freeze, as long as you get there first ;) class Class def freeze; end end class Foo def bar; end end Foo.freeze class Foo def zap; end end -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407