The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Rope::Chain - Rope chained properties

VERSION

Version 0.40

SYNOPSIS

        package Church;

        use Rope;
        use Rope::Autoload;
        use Rope::Chain;

        prototyped (
                been_cannot_find => [],
                found => []
        );

        chain add => 'ephesus' => sub {
              push @{ $_[0]->been_cannot_find }, 'Ephesus';
        };
 
        chain add => 'smyrna' => sub {
                push @{ $_[0]->been_cannot_find }, 'Smyrna';
        };
         
        chain add => 'pergamon' => sub {
                push @{ $_[0]->been_cannot_find }, 'Pergamon';
        };

        chain add => 'thyatira' => sub {
                push @{ $_[0]->been_cannot_find }, 'Thyatira';
                return $_[0]->been_cannot_find;
        };

        ...

        1;

...

        my $k = Church->new();

        say $k->add(); # [ 'Ephesus', 'Smyrna', 'Pergamon', 'Thyatira' ]

Exports

chain

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)