projects
/
gitmo/Moose.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
refactor constructor inlining to reuse attribute code
[gitmo/Moose.git]
/
lib
/
Moose
/
Meta
/
Method
/
Accessor
/
Native
/
Array
/
get.pm
diff --git
a/lib/Moose/Meta/Method/Accessor/Native/Array/get.pm
b/lib/Moose/Meta/Method/Accessor/Native/Array/get.pm
index
b2a79f5
..
c440270
100644
(file)
--- a/
lib/Moose/Meta/Method/Accessor/Native/Array/get.pm
+++ b/
lib/Moose/Meta/Method/Accessor/Native/Array/get.pm
@@
-33,10
+33,10
@@
sub _inline_check_arguments {
}
sub _return_value {
- my $self = shift;
- my $slot_access = shift;
+ my $self = shift;
+ my ($slot_access) = @_;
- return "${slot_access}->[ \$_[0] ]";
+ return $slot_access . '->[ $_[0] ]';
}
1;