From: Tanner Burson Date: 2006-05-12T06:49:51+09:00 Subject: Re: final/closed classes in Ruby (was: Sharp knives and glue) ------=_Part_15391_12591712.1147384188822 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 5/11/06, Berger, Daniel wrote: > > > -----Original Message----- > > From: Gregory Seidman [mailto:gsslist+ruby@anthropohedron.net] > > Sent: Thursday, May 11, 2006 3:39 PM > > To: ruby-talk ML > > Subject: Re: final/closed classes in Ruby (was: Sharp knives and glue) > > > > > class Foo > > def test > > puts "hello" > > end > > freeze #this already exists and does what you want > > end > > Well, I'll be damned. I didn't know you could do that. You learn > something knew every day I guess. :) > > Doesn't prevent subclassing though. :) > > Thanks, > > Dan But any solution you can put into place with pure ruby, can be circumvented just as easily. :) --=20 =3D=3D=3DTanner Burson=3D=3D=3D tanner.burson@gmail.com http://tannerburson.com <---Might even work one day... ------=_Part_15391_12591712.1147384188822--