Steven Haryanto > Data-ModeMerge > Data::ModeMerge::Mode::Base

Download:
Data-ModeMerge-0.30.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.30   Source  

NAME ^

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

VERSION ^

version 0.30

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.

AUTHOR ^

Steven Haryanto <stevenharyanto@gmail.com>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2013 by Steven Haryanto.

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

syntax highlighting: