has path => ( isa => "Path::Class::Dir",
is => 'ro');
- has description => ( isa => NonEmptySimpleStr,
+ has description => ( isa => 'Str',
is => 'ro',
lazy_build => 1,
);
}
method _build_description {
- my $description;
+ my $description = "";
eval {
$description = $self->path->file('description')->slurp;
chomp $description;
};
- $description ||= " ";
return $description;
}