summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordoy <doy@tozt.net>2009-02-04 19:39:51 -0500
committerdoy <doy@tozt.net>2009-02-04 19:39:51 -0500
commit91b4279c62901f7be44cd1724044fe448a0c96d8 (patch)
tree851353a8b311f5202e6fbd26ad5d9578bc8c5b0e
parent44fa727e22a16b1a42bb52145488e2f829a6f0d7 (diff)
downloadmoosex-role-matcher-91b4279c62901f7be44cd1724044fe448a0c96d8.tar.gz
moosex-role-matcher-91b4279c62901f7be44cd1724044fe448a0c96d8.zip
document the allow_missing_methods parameter
-rw-r--r--lib/MooseX/Role/Matcher.pm4
1 files changed, 4 insertions, 0 deletions
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