1 package Moose::Meta::Method::Accessor::Native::String::match;
7 $VERSION = eval $VERSION;
8 our $AUTHORITY = 'cpan:STEVAN';
12 with 'Moose::Meta::Method::Accessor::Native::Reader' => {
17 _inline_check_arguments
22 sub _minimum_arguments { 1 }
24 sub _maximum_arguments { 1 }
26 sub _inline_check_arguments {
29 return $self->_inline_throw_error(
30 q{'The argument passed to match must be a string or regexp reference'}
31 ) . q{ unless ! ref $_[0] || ref $_[0] eq 'Regexp';};
35 my ( $self, $slot_access ) = @_;
37 return "$slot_access =~ \$_[0]";