projects
/
gitmo/Moose.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
All of the non-mutating array helpers are now inlined.
[gitmo/Moose.git]
/
lib
/
Moose
/
Meta
/
Method
/
Accessor
/
Native
/
Array
/
map.pm
diff --git
a/lib/Moose/Meta/Method/Accessor/Native/Array/map.pm
b/lib/Moose/Meta/Method/Accessor/Native/Array/map.pm
index
d7a46b3
..
435472e
100644
(file)
--- a/
lib/Moose/Meta/Method/Accessor/Native/Array/map.pm
+++ b/
lib/Moose/Meta/Method/Accessor/Native/Array/map.pm
@@
-13,6
+13,11
@@
sub _inline_process_arguments {
return 'my $func = shift;';
}
+sub _inline_check_arguments {
+ return
+ q{die 'Must provide a code reference as an argument' unless ( ref $func || q{} ) eq 'CODE';};
+}
+
sub _return_value {
my $self = shift;
my $slot_access = shift;