From: Shawn M Moore Date: Sun, 31 May 2009 02:53:32 +0000 (-0400) Subject: More doc for Method::Conflicting X-Git-Tag: 0.80~21 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=49f8f3e6c3d79d1c1efaf61fd4b45deb19709895;p=gitmo%2FMoose.git More doc for Method::Conflicting --- diff --git a/lib/Moose/Meta/Role/Method/Conflicting.pm b/lib/Moose/Meta/Role/Method/Conflicting.pm index 5ddd17d..4957177 100644 --- a/lib/Moose/Meta/Role/Method/Conflicting.pm +++ b/lib/Moose/Meta/Role/Method/Conflicting.pm @@ -38,6 +38,31 @@ L. =over 4 +=item B<< Moose::Meta::Role::Method::Conflicting->new(%options) >> + +This creates a new type constraint based on the provided C<%options>: + +=over 8 + +=item * name + +The method name. This is required. + +=item * roles + +The list of role names that generated the conflict. This is required. + +=back + +=item B<< $method->name >> + +Returns the conflicting method's name, as provided to the constructor. + +=item B<< $method->roles >> + +Returns the roles that generated this conflicting method, as provided to the +constructor. + =item B<< $method->is_conflict >> Returns whether the method requirement is due to a conflict. By default for