From: Ryan Davis Date: 2012-08-27T17:58:40+09:00 Subject: Re: A Ruby class is never closed On Aug 27, 2012, at 01:47 , Robert Klemme wrote: > On Sat, Aug 25, 2012 at 11:36 PM, Marc Heiler wrote: >> I think he basically wants to have a class that can never ever again be >> changed. >> >> As far as I know, this is not possible in ruby. > > In what ways can you still change a frozen class? class X; freeze; end X = X.dup class X; def y; end; end # works fine In what ways will ruby ever actually stop us from doing something we want to do? private isn't private... frozen never lasts... The people looking for these assurances have to be educated that it just isn't something that is worthwhile trying here.