3 package Squirrel::Role;
9 if ( $INC{"Moose/Role.pm"} ) {
11 import => \&Moose::Role::import,
12 unimport => defined &Moose::Role::unimport ? \&Moose::Role::unimport : sub {},
17 import => \&Mouse::Role::import,
18 unimport => \&Mouse::Role::unimport,
28 my $caller = caller(1);
30 $pkgs{$caller} = $class->_choose_backend
31 unless $pkgs{$caller};
35 goto $_[0]->_handlers->{import};
39 goto $_[0]->_handlers->{unimport};