NAME

Venus::Role::Pluggable - Pluggable Role

ABSTRACT

Pluggable Role for Perl 5

SYNOPSIS

package Example::Plugin::Password;

use Venus::Class;

use Digest::SHA ();

sub execute {
  my ($self, $example) = @_;

  return Digest::SHA::sha1_hex($example->secret);
}

package Example;

use Venus::Class;

with 'Venus::Role::Pluggable';

has 'secret';

package main;

my $example = Example->new(secret => rand);

# $example->password;

DESCRIPTION

This package provides a mechanism for dispatching to plugin classes.

INTEGRATES

This package integrates behaviors from:

Venus::Role::Proxyable

AUTHORS

Cpanery, cpanery@cpan.org

LICENSE

Copyright (C) 2021, Cpanery

Read the "license" file.