From 95f9951833e3a5373ee36341095dac413b8be475 Mon Sep 17 00:00:00 2001 From: franck cuny Date: Thu, 29 Apr 2010 14:59:36 +0200 Subject: use better variables name --- lib/MooseX/Privacy/Meta/Class/Role.pm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lib/MooseX/Privacy') 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 ); }; }; -- cgit 1.4.1