logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Class::Factory::Util - Provide utility methods for factory classes

Author

       Dave Rolsky, <autarch@urth.org>.

       Removed from Alzabo and packaged by Terrence Brannon, <tbone@cpan.org>.

Description

       This module exports a method that is useful for factory classes.

Name

       Class::Factory::Util - Provide utility methods for factory classes

Support

       Please submit bugs to the CPAN RT system at
       http://rt.cpan.org/NoAuth/ReportBug.html?Queue=class-factory-util or via email at
       bug-class-factory-util@rt.cpan.org.

Synopsis

         package My::Class;

         use Class::Factory::Util;

         My::Class->subclasses;

Usage

       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 @INC as 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".

See Also