2 package Squirrel::Role;
7 if ( $INC{"Moose/Role.pm"} ) {
9 import => \&Moose::Role::import,
10 unimport => defined &Moose::Role::unimport ? \&Moose::Role::unimport : sub {},
15 import => \&Mouse::Role::import,
16 unimport => \&Mouse::Role::unimport,
26 my $caller = caller(1);
28 $pkgs{$caller} = $class->_choose_backend
29 unless $pkgs{$caller};
33 goto $_[0]->_handlers->{import};
37 goto $_[0]->_handlers->{unimport};