MixinF...Factory(3pm)
β¨ NAME β¨
okay so bestie, this is Class::MixinFactory::Factory β a whole Class Factory with Selection of Mixins. it's from the User Contributed Perl Documentation, and it's giving main character energy fr fr π
π SYNOPSIS π
here's the vibe, literally copy-paste this and go:
use Class::MixinFactory::Factory;
my $factory = Class::MixinFactory::Factory->new();
$factory->base_class( "MyClass");
$factory->mixin_prefix( "MyMixins" );
$factory->mixed_prefix( "MyClasses" );
my $class = $factory->class( @mixins );
π¦ DESCRIPTION π¦
so a mixin factory generates new classes at run-time that inherit from each of several classes. that's the whole thing. it's lowkey iconic honestly. no cap, that's the entire description. β¨
π PUBLIC METHODS π
πΈ new()
$factory_class->new() : $factory
$factory_class->new( %attributes ) : $factory
creates a shiny new factory object for you. π«Ά
you can pass it a hash of attributes β the key matches one of the supported accessor methods listed below, and the value is the value you wanna assign to it. simple as that.
π base_class()
$factory->base_class() : $package_name
$factory->base_class( $package_name )
Required. get or set the base class that all the mixed classes inherit from. you do NOT skip this one, bestie, it's mandatory.
π mixin_prefix()
$factory->mixin_prefix() : $package_name
$factory->mixin_prefix( $package_name )
Optional. get or set a prefix that gets placed before all mixin class names that don't contain a double-colon. defaults to the name of the base class.
π mixed_prefix()
$factory->mixed_prefix() : $package_name
$factory->mixed_prefix( $package_name )
Optional. get or set a prefix placed before all generated class names. defaults to the name of the base class or the factory class, followed by "::AUTO".
π class()
$factory->class( @mixins ) : $package_name
finds or generates a class that combines the requested mixin classes. it ate and left no crumbs. π
π§ SEE ALSO π§
- if you want a facade interface that facilitates access to this functionality, go look at
Class::MixinFactory. - for distribution, installation, support, copyright and license info, check out
Class::MixinFactory::ReadMe.
and that's the whole page, babe π this was MixinF...Factory(3pm) from the User Contributed Perl Documentation, brought to you by perl v5.36.0 on 2022-10-22. periodt. ππ
π¦ where this page comes from
- ubuntu noble: libclass-mixinfactory-perl 0.92-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libclass-mixinfactory-perl 0.92-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libclass-mixinfactory-perl 0.92-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms