From: Verno Miller Date: 2006-09-18T18:43:44+09:00 Subject: Re: A idea about Ruby module, can we degrade a class to a mo > Uncutstone Wu wrote: > ... As you said, a man is not always a teacher. So, rather than including Teacher > into class Man, it's better to extend a Man object individually as in the following code. > > ... > > Thanks. > > uncutstone ... or you could (somewhat the other way round) have a module Teacher that makes a thread_local method available; this way you also could dynamically modify class Man! http://rubylution.ping.de/articles/2006/05/02/thread-local-variables -- Posted via http://www.ruby-forum.com/.