> 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/.