use Scalar::Util 'blessed';
-our $VERSION = '0.60';
+our $VERSION = '0.62_02';
$VERSION = eval $VERSION;
our $AUTHORITY = 'cpan:STEVAN';
sub apply_methods {
my ($self, $role1, $role2) = @_;
foreach my $method_name ($role1->get_method_list) {
-
- next if $self->is_method_excluded($method_name);
if ($self->is_method_aliased($method_name)) {
my $aliased_method_name = $self->get_method_aliases->{$method_name};
);
if (!$role2->has_method($method_name)) {
- $role2->add_required_methods($method_name);
+ $role2->add_required_methods($method_name)
+ unless $self->is_method_excluded($method_name);
}
next;
- }
+ }
+
+ next if $self->is_method_excluded($method_name);
# it if it has one already
if ($role2->has_method($method_name) &&