NAME
Minions::Util
SYNOPSIS
package Example::Roles::Acme::Queue_v3;
use Minions::Implementation
roles => [qw/
Example::Roles::Role::Pushable
Example::Roles::Role::LogSize
/],
requires => {
attributes => [qw/items/]
};
;
use Minions::Util 'call_sp';
sub pop {
my ($self) = @_;
call_sp($self => 'log_info');
shift @{ $self->{$__items} };
}
1;
DESCRIPTION
Utility functions for use with Minions, exported on demand.
FUNCTIONS
call_semiprivate(OBJ, SUB_NAME, ...)
Provides a shorcut for calling semiprivate routines, so that
$self->{$__}->internal_func($self, @args);
can also be accomplished by
call_semiprivate($self, 'internal_func', @args);
Note that this function is only intended for use in an implementation or role.
call_sp(OBJ, SUB_NAME, ...)
call_sp
is an alias for call_semiprivate