1 package Moose::Meta::Method::Accessor::Native::String::match;
10 $VERSION = eval $VERSION;
11 our $AUTHORITY = 'cpan:STEVAN';
15 with 'Moose::Meta::Method::Accessor::Native::Reader' => {
20 _inline_check_arguments
25 sub _minimum_arguments { 1 }
27 sub _maximum_arguments { 1 }
29 sub _inline_check_arguments {
32 return $self->_inline_throw_error(
33 q{'The argument passed to match must be a string or regexp reference'}
34 ) . q{ unless Moose::Util::_STRINGLIKE0( $_[0] ) || Params::Util::_REGEX( $_[0] );};
38 my ( $self, $slot_access ) = @_;
40 return "$slot_access =~ \$_[0]";