From 91b4279c62901f7be44cd1724044fe448a0c96d8 Mon Sep 17 00:00:00 2001 From: doy Date: Wed, 4 Feb 2009 19:39:51 -0500 Subject: document the allow_missing_methods parameter --- lib/MooseX/Role/Matcher.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/MooseX/Role/Matcher.pm b/lib/MooseX/Role/Matcher.pm index 2449d7e..e7c314a 100644 --- a/lib/MooseX/Role/Matcher.pm +++ b/lib/MooseX/Role/Matcher.pm @@ -61,6 +61,10 @@ Which attribute/method to test against by default, if none are specified explicitly. Setting default_match to 'foo' allows using C<< $obj->match('bar') >> rather than C<< $obj->match(foo => 'bar') >>. +=item allow_missing_methods + +If set to true, matching against a method that doesn't exist is treated as though matching against undef. Otherwise, the match call dies. + =back =cut -- cgit v1.2.3