NAME

Rope::Factory - Rope factory properties

VERSION

Version 0.34

SYNOPSIS

package Knot;

use Rope;
use Rope::Autoload;
use Rope::Factory qw/Str HashRef ArrayRef/;

factory loop => (
	[Str] => sub {
		return 'string';
	},
	[Str, Str] => sub {
		return 'string string';
	},		
	[Str, HashRef, ArrayRef] => sub {
		return 'string hashref arrayref'
	}
);

factory loop => (
	[Str, Str, Str] => sub {
		return 'string string string';
	}
);

factory loop => 1 => (
	[Str] => sub {
		return 'chained factory ' . $_[1];
	}
);

1;

...

my $k = Knot->new();

say $k->loop('abc'); # string;

Exports

factory

AUTHOR

LNATION, <email at lnation.org>

BUGS

Please report any bugs or feature requests to bug-rope at rt.cpan.org, or through the web interface at https://rt.cpan.org/NoAuth/ReportBug.html?Queue=Rope. 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 Rope

You can also look for information at:

ACKNOWLEDGEMENTS

LICENSE AND COPYRIGHT

This software is Copyright (c) 2023 by LNATION.

This is free software, licensed under:

The Artistic License 2.0 (GPL Compatible)