The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Data::ModeMerge::Mode::Base - Base class for Data::ModeMerge mode handler

VERSION

This document describes version 0.360 of Data::ModeMerge::Mode::Base (from Perl distribution Data-ModeMerge), released on 2021-08-15.

SYNOPSIS

 use Data::ModeMerge;

DESCRIPTION

This is the base class for mode type handlers.

ATTRIBUTES

merger

prefix

prefix_re

check_prefix_sub

add_prefix_sub

remove_prefix_sub

METHODS

name

Return name of mode. Subclass must override this method.

precedence_level

Return precedence level, which is a number. The greater the number, the higher the precedence. Subclass must override this method.

default_prefix

Return default prefix. Subclass must override this method.

default_prefix_re

Return default prefix regex. Subclass must override this method.

check_prefix($hash_key)

Return true if hash key has prefix for this mode.

add_prefix($hash_key)

Return hash key with added prefix of this mode.

remove_prefix($hash_key)

Return hash key with prefix of this mode prefix removed.

HOMEPAGE

Please visit the project's homepage at https://metacpan.org/release/Data-ModeMerge.

SOURCE

Source repository is at https://github.com/perlancar/perl-Data-ModeMerge.

BUGS

Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Data-ModeMerge

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

AUTHOR

perlancar <perlancar@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2021, 2016, 2015, 2013, 2012, 2011, 2010 by perlancar <perlancar@cpan.org>.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.