requires 'Email::Valid';
requires 'File::ShareDir' => '1.00'; #
requires 'File::Spec';
-requires 'Moose' => '0.58';
+requires 'Moose' => '0.74';
requires 'MooseX::Types' => '0.04';
requires 'MooseX::Types::Common';
requires 'MooseX::Types::DateTime';
# attributes => [{...}] #DWIM, treat as [qr/./, {...} ]
# attributes => [[-exclude => ...]] #DWIM, treat as [qr/./, [-exclude => ...]]
my $attr_haystack =
- [ map { $_->name } $source_class->meta->compute_all_applicable_attributes ];
+ [ map { $_->name } $source_class->meta->get_all_attributes ];
if(!defined $attr_rules){
$attr_rules = [qr/./];
sub parameter_attributes {
my $self = shift;
return grep { $_->isa(ParameterAttribute) }
- $self->compute_all_applicable_attributes;
+ $self->get_all_attributes;
};
__PACKAGE__->meta->make_immutable;
sub parameter_attributes {
my $self = shift;
return grep { $_->isa(ParameterAttribute) }
- $self->compute_all_applicable_attributes;
+ $self->get_all_attributes;
};
sub domain_models {
my $self = shift;
return grep { $_->isa(DomainModelAttribute) }
- $self->compute_all_applicable_attributes;
+ $self->get_all_attributes;
};
__PACKAGE__->meta->make_immutable;
map { /^_fragment_(.*)/; $1; }
grep { /^_fragment_/ }
map { $_->{name} }
- $self->meta->compute_all_applicable_methods
+ $self->meta->get_all_methods
];
};
sub render {
implements _contained_names => sub {
my ($self, $vp) = @_;
my @names;
- foreach my $attr ($vp->meta->compute_all_applicable_attributes) {
+ foreach my $attr ($vp->meta->get_all_attributes) {
next unless eval { $attr->type_constraint->name->isa(ViewPort) };
my $name = $attr->name;
next if ($name eq 'outer');