use warnings;
use metaclass;
-our $VERSION = '0.93';
-$VERSION = eval $VERSION;
-our $AUTHORITY = 'cpan:STEVAN';
-
__PACKAGE__->meta->add_attribute('method_exclusions' => (
init_arg => '-excludes',
reader => 'get_method_exclusions',
- default => sub { [] }
+ default => sub { [] },
+ Class::MOP::_definition_context(),
));
__PACKAGE__->meta->add_attribute('method_aliases' => (
init_arg => '-alias',
reader => 'get_method_aliases',
- default => sub { {} }
+ default => sub { {} },
+ Class::MOP::_definition_context(),
));
sub new {
my ($class, %params) = @_;
-
- if ( exists $params{excludes} && !exists $params{'-excludes'} ) {
- $params{'-excludes'} = delete $params{excludes};
- }
- if ( exists $params{alias} && !exists $params{'-alias'} ) {
- $params{'-alias'} = delete $params{alias};
- }
-
- if ( exists $params{'-excludes'} ) {
-
- # I wish we had coercion here :)
- $params{'-excludes'} = (
- ref $params{'-excludes'} eq 'ARRAY'
- ? $params{'-excludes'}
- : [ $params{'-excludes'} ]
- );
- }
-
$class->_new(\%params);
}
1;
+# ABSTRACT: A base class for role application
+
__END__
=pod
-=head1 NAME
-
-Moose::Meta::Role::Application - A base class for role application
-
=head1 DESCRIPTION
This is the abstract base class for role applications.
=head1 BUGS
-All complex software has bugs lurking in it, and this module is no
-exception. If you find a bug please either email me, or add the bug
-to cpan-RT.
-
-=head1 AUTHOR
-
-Stevan Little E<lt>stevan@iinteractive.comE<gt>
-
-=head1 COPYRIGHT AND LICENSE
-
-Copyright 2006-2010 by Infinity Interactive, Inc.
-
-L<http://www.iinteractive.com>
-
-This library is free software; you can redistribute it and/or modify
-it under the same terms as Perl itself.
+See L<Moose/BUGS> for details on reporting bugs.
=cut