From d2d5c0f7879e78a0d9ac238b8d6ad1f7aeb2a019 Mon Sep 17 00:00:00 2001 From: doy Date: Mon, 12 Jan 2009 23:24:30 -0500 Subject: document hashref matching --- lib/MooseX/Role/Matcher.pm | 6 ++++++ 1 file changed, 6 insertions(+) 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 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. -- cgit v1.2.3