+ - Remove redundant code in create_class_with_roles
- Minor doc fix to does_role
- Split Role::Tiny out into its own dist
foreach my $role (@roles) {
_load_module($role);
- die "${role} is not a Role::Tiny" unless my $info = $INFO{$role};
+ die "${role} is not a Role::Tiny" unless $INFO{$role};
}
if ($] >= 5.010) {
*{_getglob("${new_name}::ISA")} = [ @composable, $superclass ];
- my @info = map +($INFO{$_} ? $INFO{$_} : ()), @roles;
+ my @info = map $INFO{$_}, @roles;
$me->_check_requires(
$new_name, $compose_name,