Role-Hooks
view release on metacpan or search on metacpan
t/mite/lib/Local/Mite.pm view on Meta::CPAN
return;
};
}
sub import {
my ( $class, $kind ) = @_;
my ( $caller, $file ) = caller;
# Turn on warnings and strict in the caller
warnings->import;
strict->import;
$kind ||= 'class';
$kind = ( $kind =~ /role/i ) ? 'role' : 'class';
if( _is_compiling() ) {
require Mite::Project;
my $method = "inject_mite_$kind\_functions";
Mite::Project->default->$method(
package => $caller,
file => $file,
( run in 0.247 second using v1.01-cache-2.11-cpan-299005ec8e3 )