summary refs log tree commit diff
path: root/lib/MooseX/Privacy/Meta
diff options
context:
space:
mode:
Diffstat (limited to 'lib/MooseX/Privacy/Meta')
-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 );
     };
 };