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::Fix::Builder - Base role for Catmandu fixes

Description

       This role expects a "_build_fixer" method that produces a coderef that transforms the data.  Used in
       combination with Catmandu::Path implementations, data manipulations can be described in a relatively
       high-level way. Most fixes shipped with Catmandu work this way and can be used as a starting point to
       write your own fixes.

Name

       Catmandu::Fix::Builder - Base role for Catmandu fixes

Synopsis

           package Catmandu::Fix::my_fix;

           use Catmandu::Sane;
           use Moo;

           with 'Catmandu::Fix::Builder';

           sub _build_fixer {
               sub {
                   my ($data) = @_;
                   $data->{foo} = 'bar';
                   $data;
               }
           }

perl v5.40.0                                       2025-01-17                        Catmandu::Fix::Builder(3pm)

See Also