summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordoy <doy@tozt.net>2009-01-12 23:24:30 -0500
committerdoy <doy@tozt.net>2009-01-12 23:24:30 -0500
commitd2d5c0f7879e78a0d9ac238b8d6ad1f7aeb2a019 (patch)
tree2358e4d77e5e4fc584672a76a04b59c744ee90cf
parent83cecf0e0196e457b858bf65187b2e2a4490cee4 (diff)
downloadmoosex-role-matcher-d2d5c0f7879e78a0d9ac238b8d6ad1f7aeb2a019.tar.gz
moosex-role-matcher-d2d5c0f7879e78a0d9ac238b8d6ad1f7aeb2a019.zip
document hashref matching
-rw-r--r--lib/MooseX/Role/Matcher.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/MooseX/Role/Matcher.pm b/lib/MooseX/Role/Matcher.pm
index c3870af..25d808f 100644
--- a/lib/MooseX/Role/Matcher.pm
+++ b/lib/MooseX/Role/Matcher.pm
@@ -215,6 +215,12 @@ Matches the result of the method against each element in the arrayref as
described above, returning true if any of the submatches return true, and false
otherwise.
+=item HASHREF
+
+If the method does not return an object which does MooseX::Role::Matcher,
+returns false. Otherwise, returns the result of calling C<match> on the
+returned object, with the contents of the hashref as arguments.
+
=back
Method names can also be given with a leading '!', which inverts that test. The first key can be omitted from the argument list if it is the method name passed to the default_match parameter when composing this role.