logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Catmandu::Importer::Multi - Chain multiple importers together

Methods

       Every Catmandu::Importer is a Catmandu::Iterable all its methods are inherited.

perl v5.40.0                                       2025-01-17                     Catmandu::Importer::Multi(3pm)

Name

       Catmandu::Importer::Multi - Chain multiple importers together

Synopsis

           use Catmandu::Importer::Multi;

           my $importer = Catmandu::Importer::Multi->new(importers => [
               Catmandu::Importer::Mock->new,
               Catmandu::Importer::Mock->new,
           ]);

           my $importer = Catmandu::Importer::Multi->new(
               'importer1',
               'importer2',
           );

           # return all the items of each importer in turn
           $importer->each(sub {
               # ...
           });

See Also