Hi,
In message "Re: injecting dynamic methods into a class"
on Thu, 8 Dec 2005 11:45:18 +0900,
"jonathan <zjll9 / imail.etsu.edu> <zjll9 / imail.etsu.edu>" <zjll9 / imail.etsu.edu> writes:
|> |How do you all think the term 'static class' fits?
|>
|> Nope, just because it's not static at all.
|It seems to be a term that .NET (and I think C++) uses:
|
|see <a
|href="http://msdn2.microsoft.com/en-us/library/79b3xss3.aspx">http://msdn2.microsoft.com/en-us/library/79b3xss3.aspx</a>
I thought we were talking about so called singleton classes, right?
It's totally different from static classes in C# and C++.
Singleton classes in Ruby are:
* created run time on demand
* can be modified (or enhanced) run time
* their methods may modify any instances
* their scope are not limited to certain file
matz.