Skip to content
Sections
>> Trisquel >> 套件 >> etiona >> perl >> libmoosex-meta-typeconstraint-mooish-perl
etiona  ] [  nabia  ] [  aramo  ]

套件: libmoosex-meta-typeconstraint-mooish-perl (0.001-1)

module to translate Moo-style constraints to Moose-style

Moose::Meta::TypeConstraint are expected to return true if the value passes the constraint, and false otherwise; Moo "constraints", on the other hand, die if validation fails.

The MooseX::Meta::TypeConstraint::Mooish metaclass allows for Moo-style constraints; it will wrap them and translate their Moo into a dialect Moose understands.

Note that this is largely to enable functionality in MooseX::AttributeShortcuts; the easiest way use this metaclass is by using that package. Also, as it's not inconceivable that this functionality may be desired in other constraint metaclasses, the bulk of this metaclass' functionality is implemented as a trait (MooseX::TraitFor::Meta::TypeConstraint::Mooish).

其他與 libmoosex-meta-typeconstraint-mooish-perl 有關的套件

  • 依賴
  • 推薦
  • 建議

下載 libmoosex-meta-typeconstraint-mooish-perl

下載可用於所有硬體架構的
硬體架構 套件大小 安裝後大小 檔案
all 11.5 kB38 kB [文件列表]