summary refs log tree commit diff
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2010-04-29 14:59:36 +0200
committerfranck cuny <franck@lumberjaph.net>2010-04-29 14:59:36 +0200
commit95f9951833e3a5373ee36341095dac413b8be475 (patch)
treeb6dab660830a69acb2cf41fcce4f572a6a445ac0
parentadd count to attributes and methods (diff)
downloadmoosex-privacy-95f9951833e3a5373ee36341095dac413b8be475.tar.gz
use better variables name
-rw-r--r--lib/MooseX/Privacy/Meta/Class/Role.pm12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/MooseX/Privacy/Meta/Class/Role.pm b/lib/MooseX/Privacy/Meta/Class/Role.pm
index 7357c2e..3640e21 100644
--- a/lib/MooseX/Privacy/Meta/Class/Role.pm
+++ b/lib/MooseX/Privacy/Meta/Class/Role.pm
@@ -45,21 +45,21 @@ role {
     );
 
     method $meta_method => sub {
-        my ( $self, $method_name, $method ) = @_;
+        my ( $self, $method_name, $body ) = @_;
 
         my $class = "MooseX::Privacy::Meta::Method::" . ( ucfirst $name );
 
-        my $custom_method = blessed $method ? $method : $class->wrap(
+        my $method = blessed $body ? $body : $class->wrap(
             name         => $method_name,
             package_name => $self->name,
-            body         => $method
+            body         => $body
         );
 
         confess $method_name . " is not a " . $name . " method"
-            unless $custom_method->isa($class);
+            unless $method->isa($class);
 
-        $self->add_method( $custom_method->name, $custom_method );
-        $self->$push_method( $custom_method->name );
+        $self->add_method( $method->name, $method );
+        $self->$push_method( $method->name );
     };
 };