All of the non-mutating array helpers are now inlined.
[gitmo/Moose.git] / lib / Moose / Meta / Method / Accessor / Native / Array / map.pm
index d7a46b3..435472e 100644 (file)
@@ -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;