From: "Mauricio Fernández" Date: 2003-08-17T01:11:09+09:00 Subject: Re: Newbie Q: Data encapsulation with Ruby On Sun, Aug 17, 2003 at 01:02:45AM +0900, Dan Doel wrote: > > P.S.: It's also the case that people can add methods to your class to > access private data > you don't want them to. That's just a part of ruby. I believe the > #freeze method prevents > that, though. They can also use instance_eval, or add singleton methods to the object. Now, if you cannot trust the people you're working with not to break your design you're screwed, no matter the language or the technology. -- _ _ | |__ __ _| |_ ___ _ __ ___ __ _ _ __ | '_ \ / _` | __/ __| '_ ` _ \ / _` | '_ \ | |_) | (_| | |_\__ \ | | | | | (_| | | | | |_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_| Running Debian GNU/Linux Sid (unstable) batsman dot geo at yahoo dot com We all know Linux is great... it does infinite loops in 5 seconds. - Linus Torvalds about the superiority of Linux on the Amterdam Linux Symposium