use Scalar::Util 'blessed';
use Carp 'confess';
-our $VERSION = '0.73_02';
+our $VERSION = '0.75_01';
$VERSION = eval $VERSION;
our $AUTHORITY = 'cpan:STEVAN';
}) if exists $methods->{remove};
}
+$META->add_attribute(
+ 'method_metaclass',
+ reader => 'method_metaclass',
+ default => 'Moose::Meta::Role::Method',
+);
+
## some things don't always fit, so they go here ...
sub add_attribute {
$self->get_attribute_map->{$name} = $attr_desc;
}
-# DEPRECATED
-# sub _clean_up_required_methods {
-# my $self = shift;
-# foreach my $method ($self->get_required_method_list) {
-# $self->remove_required_methods($method)
-# if $self->has_method($method);
-# }
-# }
-
## ------------------------------------------------------------------
## method modifiers
## ------------------------------------------------------------------
## methods
-sub method_metaclass { 'Moose::Meta::Role::Method' }
-
sub get_method_map {
my $self = shift;
The options are passed directly to the constructor for the appropriate
L<Moose::Meta::Role::Application> subclass.
+Note that this will apply the role even if the C<$thing> in question already
+C<does> this role. L<Moose::Util/does_role> is a convenient wrapper for
+finding out if role application is necessary.
+
=back
=head2 Roles and other roles