Class:...::Util(3pm)
okay bestie, welcome to the Class:...::Util(3pm) page from User Contributed Perl Documentation β this module is a lil Perl helper for factory classes and itβs lowkey serving utility-method realness. β¨
πΈ NAME πΈ
Class::Factory::Util β provide utility methods for factory classes. π
π SYNOPSIS π
The vibe is literally this:
package My::Class;
use Class::Factory::Util;
My::Class->subclasses;
π¦ DESCRIPTION π¦
This module exports a method that is useful for factory classes. Thatβs the description, bestie β short, sweet, and slay. π«Ά
β¨ USAGE β¨
Okay so hereβs the tea: 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. Periodt. π
π 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. No cap, thatβs where the bugs go. π
π AUTHOR π
Dave Rolsky, <autarch@urth.org>.
Removed from Alzabo and packaged by Terrence Brannon, <tbone@cpan.org>. Iconic collaboration behavior. π
π COPYRIGHT π
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. Read the license, bestie β itβs giving important. β
later bestie, this manual page is from perl v5.42.0, dated 2025-02-06, and its manual name is Class:...::Util(3pm). ππ
π¦ where this page comes from
- opensuse-leap 16.0: perl-Class-Factory-Util 1.700.0-160000.2.2 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms