名称
List::Objects::Types - List::Objects::WithUtils 的基于 Type::Tiny 的类型
概要
package Foo;
use List::Objects::Types -all;
use List::Objects::WithUtils;
use Moo;
use MooX::late;
has my_array => (
is => 'ro',
isa => ArrayObj,
default => sub { array }
);
has static_array => (
is => 'ro',
isa => ImmutableArray,
coerce => 1,
default => sub { [qw/ foo bar /] }
);
has my_hash => (
is => '
2021-07-02 15:03:46
27KB
Perl
1