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