From: Lukas Mai Date: Mon, 18 Jun 2012 14:16:39 +0000 (+0200) Subject: make 'method' default to attrs => ":method" X-Git-Tag: v0.06~8 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=7947f7ce418bbcde81608456917b72252b4c1934;p=p5sagit%2FFunction-Parameters.git make 'method' default to attrs => ":method" --- 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 {