bless \%args, $class;
}
-sub name { $_[0]->{package} }
-sub _method_map{ $_[0]->{methods} }
-
-sub namespace{
- my $name = $_[0]->{package};
- no strict 'refs';
- return \%{ $name . '::' };
-}
+sub roles { $_[0]->{roles} }
sub superclasses {
my $self = shift;
*$method = sub { $code->($pkg, $body, @_) };
}
-
-sub roles { $_[0]->{roles} }
-
sub does_role {
my ($self, $role_name) = @_;
bless \%args, $class;
}
+sub get_roles { $_[0]->{roles} }
+
+
sub add_required_methods {
my $self = shift;
my @methods = @_;
*{ 'get_' . $modifier_type . '_method_modifiers' } = $get_method_modifiers;
}
-sub get_roles { $_[0]->{roles} }
-
# This is currently not passing all the Moose tests.
sub does_role {
my ($self, $role_name) = @_;