||Simple module for making classes uninheritable
||2003-04-02 20:01:03 GMT
||2004-06-14 15:38:41 GMT
(Projects of this owner)
Uninheritable provides a simple way to make a class uninheritable (unable to be subclassed from). While the technique to do this is not difficult, neither is it immediately obvious, and there is no standard exception for this.
class B < A; end # => raises a TypeError
Installation of "Uninheritable" requires Phil Thomson's installpkg. Thanks to David Black for his assistance with this on #ruby-talk.
Uninheritable is Copyright © 2003 Austin Ziegler and is licensed under an MIT-style licence.