文件名称:MooX-ShortHas
文件大小:10KB
文件格式:ZIP
更新时间:2024-03-04 04:04:52
Perl
姓名 MooX :: ShortHas-常见Moo的快捷方式具有属性配置 版本 版本1.202040 概要 代替: use Moo; has hro => is => ro => required => 1; has hlazy => is => lazy => builder => sub { 2 }; has hrwp => is => rwp => required => 1; has hrw => is => rw => required => 1; 您现在可以编写: use Moo; use MooX::ShortHas; ro "hro"; lazy hlazy => sub { 2 }; rwp "hrwp"; rw "hrw"; 并且可以通过附加选项来添加或覆盖选项: ro hro_opt => required => 0; 描述 的has要求开发者重复自己很多设
【文件预览】:
MooX-ShortHas-master
----.gitignore(321B)
----Changes(785B)
----t()
--------roles.t(612B)
--------basic.t(2KB)
----README.pod(3KB)
----perlcritic.rc(315B)
----README.PATCHING(2KB)
----META.json(3KB)
----lib()
--------MooX()
----cpanfile(1KB)
----dist.ini(303B)
----Makefile.PL(2KB)