1 package Moose::Meta::Method::Accessor::Native::String::match;
11 with 'Moose::Meta::Method::Accessor::Native::Reader' => {
16 _inline_check_arguments
21 sub _minimum_arguments { 1 }
23 sub _maximum_arguments { 1 }
25 sub _inline_check_arguments {
29 'if (!Moose::Util::_STRINGLIKE0($_[0]) && !Params::Util::_REGEX($_[0])) {',
30 $self->_inline_throw_error(
31 '"The argument passed to match must be a string or regexp '
40 my ($slot_access) = @_;
42 return $slot_access . ' =~ $_[0]';