Sha256: 632180c7eaea974dc40703f47bd981732254cb3851d54bd90619d1f5bd707232
Contents?: true
Size: 650 Bytes
Versions: 33
Compression:
Stored size: 650 Bytes
Contents
package Moose::Meta::Method::Accessor::Native::Array::unshift; our $VERSION = '2.2207'; use strict; use warnings; use Moose::Role; with 'Moose::Meta::Method::Accessor::Native::Array::Writer'; sub _adds_members { 1 } sub _potential_value { my $self = shift; my ($slot_access) = @_; return '[ @_, @{ (' . $slot_access . ') } ]'; } sub _inline_optimized_set_new_value { my $self = shift; my ($inv, $new, $slot_access) = @_; return 'unshift @{ (' . $slot_access . ') }, @_;'; } sub _return_value { my $self = shift; my ($slot_access) = @_; return 'scalar @{ (' . $slot_access . ') }'; } no Moose::Role; 1;
Version data entries
33 entries across 21 versions & 1 rubygems