diff options
author | doy <doy@tozt.net> | 2009-02-04 19:39:51 -0500 |
---|---|---|
committer | doy <doy@tozt.net> | 2009-02-04 19:39:51 -0500 |
commit | 91b4279c62901f7be44cd1724044fe448a0c96d8 (patch) | |
tree | 851353a8b311f5202e6fbd26ad5d9578bc8c5b0e | |
parent | 44fa727e22a16b1a42bb52145488e2f829a6f0d7 (diff) | |
download | moosex-role-matcher-91b4279c62901f7be44cd1724044fe448a0c96d8.tar.gz moosex-role-matcher-91b4279c62901f7be44cd1724044fe448a0c96d8.zip |
document the allow_missing_methods parameter
-rw-r--r-- | lib/MooseX/Role/Matcher.pm | 4 |
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 |