| Moose documentation | Contained in the Moose distribution. |
Moose::Meta::Role::Method::Conflicting - A Moose metaclass for conflicting methods in Roles
version 2.0010
Moose::Meta::Role::Method::Conflicting is a subclass of
Moose::Meta::Role::Method::Required.
This creates a new type constraint based on the provided %options:
The method name. This is required.
The list of role names that generated the conflict. This is required.
Returns the conflicting method's name, as provided to the constructor.
Returns the roles that generated this conflicting method, as provided to the constructor.
Returns the roles that generated this conflicting method as an English list.
See BUGS in Moose for details on reporting bugs.
Stevan Little <stevan@iinteractive.com>
This software is copyright (c) 2011 by Infinity Interactive, Inc..
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
| Moose documentation | Contained in the Moose distribution. |
package Moose::Meta::Role::Method::Conflicting; BEGIN { $Moose::Meta::Role::Method::Conflicting::AUTHORITY = 'cpan:STEVAN'; } BEGIN { $Moose::Meta::Role::Method::Conflicting::VERSION = '2.0010'; } use strict; use warnings; use Moose::Util; use base qw(Moose::Meta::Role::Method::Required); __PACKAGE__->meta->add_attribute('roles' => ( reader => 'roles', required => 1, )); sub roles_as_english_list { my $self = shift; Moose::Util::english_list( map { q{'} . $_ . q{'} } @{ $self->roles } ); } 1; # ABSTRACT: A Moose metaclass for conflicting methods in Roles
__END__