projects
/
p5sagit/Function-Parameters.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
b72eb6e
)
make 'method' default to attrs => ":method"
Lukas Mai [Mon, 18 Jun 2012 14:16:39 +0000 (16:16 +0200)]
lib/Function/Parameters.pm
patch
|
blob
|
blame
|
history
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 {