From c745c4dcac97c5373e8263ecd00881889e32779b Mon Sep 17 00:00:00 2001 From: doy Date: Sun, 7 Dec 2008 00:47:44 -0500 Subject: description --- lib/MooseX/Role/Matcher.pm | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/lib/MooseX/Role/Matcher.pm b/lib/MooseX/Role/Matcher.pm index b54e490..5eb391f 100644 --- a/lib/MooseX/Role/Matcher.pm +++ b/lib/MooseX/Role/Matcher.pm @@ -38,11 +38,25 @@ use List::MoreUtils qw/any all/; =head1 DESCRIPTION -=cut +This role adds flexible matching and searching capabilities to your Moose +class. It provides a match method, which tests attributes and methods of your +object against strings, regexes, or coderefs, and also provides several class +methods for using match on lists of objects. + +=head2 PARAMETERS + +MooseX::Role::Matcher is a parameterized role (see +L). The parameters it takes are: -=head1 PARAMETERS +=over -=head2 default_match +=item default_match + +Which attribute/method to test against by default, if none are specified +explicitly. Setting default_match to 'foo' allows using $obj->match('bar') +rather than $obj->match(foo => 'bar'). + +=back =cut -- cgit v1.2.3-54-g00ecf