NAME

OOP::Private - Private and protected methods.

SYNOPSIS

package Foo;
use OOP::Private;

sub publicMethod { ... }

# Croaks when called from outside of the package
sub privateMethod: Private {
    ...
}

# Same as the one above, but allows access from child classes
sub protectedMethod: Protected {
    ...
}

1;

INSTALLATION

git clone https://git.nixnet.xyz/john-smith/perl-oop-private.git
cd perl-oop-private
make Makefile.PL
make test && make install
cpan OOP::Private
cpanm OOP::Private

COVERAGE

Inside the build directory:

cover -test
cover -report $format

For possible values of $format see man cover. %%Don't waste your time, it's 100% covered%%

DOCUMENTATION

perldoc OOP::Private

AUTHOR

Copyright © Anonchique Aiteeshnique anonymous@cpan.org

LICENSE

Artistic 2.0, see LICENSE

VERSION

1.01