RAA - uninheritable

uninheritable / 1.0.1

Short description: Simple module for making classes uninheritable
Category: Library/Development
Status: stable
Created: 2003-04-02 20:01:03 GMT
Last update: 2004-06-14 15:38:41 GMT
Owner: Austin Ziegler (Projects of this owner)
Homepage: http://www.halostatue.ca/ruby/Uninheritable.html
Download: http://www.halostatue.ca/files/uninheritable-1.0.1.tar.gz
License: BSD
Dependency:
None
Description:

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.

require 'uninheritable'

class A
extend Uninheritable
end

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.

Edit this project (for project owner)

back to RAA top