}
sub is_known {
- my ($self, $col) = @_;
- return grep { $col eq $_->{key} } $self->_specs;
+ my ($self, $col, $row) = @_;
+ return grep { $col eq $_->{key} } @{ $self->_specs->[$row // 0] };
}
sub parse_profile {
sub make_spec {
my ($self, $col, $path, $cur_class) = @_;
- my $spec = { key => $col, steps => [] };
+ my $spec = { key => $col, path => $path, steps => [] };
return unless $path;