X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FFunction%2FParameters.pm;h=0f4a82d578cbdb186b5dd8ad26e39c58ef4a9ace;hb=7947f7ce418bbcde81608456917b72252b4c1934;hp=f0a9f7bdb004d3028cf8bb0e5a0b45cc55b30497;hpb=b72eb6ee4e3b6553e62365de04c6271ac8e180e5;p=p5sagit%2FFunction-Parameters.git diff --git a/lib/Function/Parameters.pm b/lib/Function/Parameters.pm index f0a9f7b..0f4a82d 100644 --- a/lib/Function/Parameters.pm +++ b/lib/Function/Parameters.pm @@ -29,7 +29,11 @@ sub _assert_valid_attributes { my @bare_arms = qw(function method); my %type_map = ( function => { name => 'optional' }, - method => { name => 'optional', shift => '$self' }, + method => { + name => 'optional', + shift => '$self', + attrs => ':method', + }, ); sub import {