projects
/
p5sagit/Function-Parameters.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
make 'method' default to attrs => ":method"
[p5sagit/Function-Parameters.git]
/
lib
/
Function
/
Parameters.pm
diff --git
a/lib/Function/Parameters.pm
b/lib/Function/Parameters.pm
index
f0a9f7b
..
0f4a82d
100644
(file)
--- 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 {