30 Mar 2007 15:45:50 UTC
- Distribution: Class-Factory-Util
- Module version: 1.7
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (2)
- Testers (17871 / 14 / 2)
- KwaliteeBus factor: 1
- 90.57% Coverage
- License: perl_5
- Activity24 month
- Download (11.66KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version++ed by:1 non-PAUSE userDROLSKY Dave Rolskyand 1 contributors
Take me over?The maintainer of this distribution is looking for someone to take over! If you're interested then please contact them via email.
Class::Factory::Util - Provide utility methods for factory classes
package My::Class; use Class::Factory::Util; My::Class->subclasses;
This module exports a method that is useful for factory classes.
When this module is loaded, it creates a method in its caller named
subclasses(). This method returns a list of the available subclasses for the package. It does this by looking in
@INCas well as the directory containing the caller, and finding any modules in the immediate subdirectories of the calling module.
So if you have the modules "Foo::Base", "Foo::Base::Bar", and "Foo::Base::Baz", then the return value of
Foo::Base->subclasses()would be "Bar" and "Baz".
Please submit bugs to the CPAN RT system at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=class-factory-util or via email at firstname.lastname@example.org.
Dave Rolsky, <email@example.com>.
Removed from Alzabo and packaged by Terrence Brannon, <firstname.lastname@example.org>.
Copyright (c) 2003-2007 David Rolsky. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
Module Install Instructions
To install Class::Factory::Util, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Class::Factory::Util
For more information on module installation, please visit the detailed CPAN module installation guide.