« Perl/Analysis/Static/Question/PackageVariable/Name.pm
↑ Summary
Perl/Analysis/Static/Question/String.pm »
| 1 | package Perl::Analysis::Static::Question::PackageVariable::NameLike; | ||
| 2 | { | ||
| 3 | $Perl::Analysis::Static::Question::PackageVariable::NameLike::VERSION = '0.004'; # TRIAL | ||
| 4 | } | ||
| 5 | # ABSTRACT: Does the name of the package variable match this regex? | ||
| 6 | |||
| 7 | use Moose; | ||
| 8 | |||
| 9 | extends 'Perl::Analysis::Static::Question'; | ||
| 10 | |||
| 11 | sub set_arguments { | ||
| 12 | my ($self, $arguments) = @_; | ||
| 13 | $self->class('Perl::Analysis::Static::Element::PackageVariable'); | ||
| 14 | $self->filter( ['NameLike'] ); | ||
| 15 | $self->arguments( [split(/:/, $arguments)] ); | ||
| 16 | } | ||
| 17 | |||
| 18 | 1; | ||
| 19 | |||
| 20 | __END__ |