diff options
author | doy <doy@tozt.net> | 2008-12-07 01:05:36 -0500 |
---|---|---|
committer | doy <doy@tozt.net> | 2008-12-07 01:05:36 -0500 |
commit | 4d86e8c87c080f2a744559fa92cd5f0894637095 (patch) | |
tree | ffca7b03fc9f46fc690e397561cd185aa36eb2c1 | |
parent | c745c4dcac97c5373e8263ecd00881889e32779b (diff) | |
download | moosex-role-matcher-4d86e8c87c080f2a744559fa92cd5f0894637095.tar.gz moosex-role-matcher-4d86e8c87c080f2a744559fa92cd5f0894637095.zip |
more docs
-rw-r--r-- | lib/MooseX/Role/Matcher.pm | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/MooseX/Role/Matcher.pm b/lib/MooseX/Role/Matcher.pm index 5eb391f..f2a01dd 100644 --- a/lib/MooseX/Role/Matcher.pm +++ b/lib/MooseX/Role/Matcher.pm @@ -80,6 +80,10 @@ method _apply_to_matches => sub { =method first_match +Class method which takes an arrayref of objects in the class that consumed this +role, and calls C<match> on each object in the arrayref, passing it the +remaining arguments, and returns the first object for which match returns true. + =cut method first_match => sub { @@ -89,6 +93,10 @@ method first_match => sub { =method grep_matches +Class method which takes an arrayref of objects in the class that consumed this +role, and calls C<match> on each object in the arrayref, passing it the +remaining arguments, and returns the each object for which match returns true. + =cut method grep_matches => sub { @@ -99,6 +107,11 @@ method grep_matches => sub { =method any_match +Class method which takes an arrayref of objects in the class that consumed this +role, and calls C<match> on each object in the arrayref, passing it the +remaining arguments, and returns true if any C<match> calls return true, +otherwise returns false. + =cut method any_match => sub { @@ -108,6 +121,11 @@ method any_match => sub { =method all_match +Class method which takes an arrayref of objects in the class that consumed this +role, and calls C<match> on each object in the arrayref, passing it the +remaining arguments, and returns false if any C<match> calls return false, +otherwise returns true. + =cut method all_match => sub { |