NAME

MooX::Keyword::Factory - Moo attribute factories

VERSION

Version 0.03

SYNOPSIS

Quick summary of what the module does.

Perhaps a little code snippet.

package Factory;

use Moo;
use MooX::Keyword extends => '+Factory';
use My::Type::Library qw/Name, Email Phone PostCode/

factory worker => Name, Email, sub {
	...
	return 2;
};

factory worker => Name, Email, Phone, sub {
	...
	return 3;
};

factory worker => Name, Email, PostCode, sub {
	...
	return 3;
};

factory worker => Name, Email, Phone, PostCode, sub {
	...
	return 4;
};

1;

...

my $factory = Factory->new();

$factory->worker($name, $email); # 2
$factory->worker($name, $email, $phone); # 3
$factory->worker($name, $email, $postcode); # 3 
$factory->worker($name, $email, $phone, $postcode); # 4

AUTHOR

LNATION, <email at lnation.org>

BUGS

Please report any bugs or feature requests to bug-moox-keyword-factory at rt.cpan.org, or through the web interface at https://rt.cpan.org/NoAuth/ReportBug.html?Queue=MooX-Keyword-Factory. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc MooX::Keyword::Factory

You can also look for information at:

ACKNOWLEDGEMENTS

LICENSE AND COPYRIGHT

This software is Copyright (c) 2022 by LNATION.

This is free software, licensed under:

The Artistic License 2.0 (GPL Compatible)