Skip to content
Sections
>> Trisquel >> 套件 >> nabia >> perl >> libmoosex-singlearg-perl
nabia  ] [  aramo  ]
[ 原始碼: libmoosex-singlearg-perl  ]

套件: libmoosex-singlearg-perl (0.09-1)

module to instantiate Moose objects using a single argument

MooseX::SingleArg allows Moose instances to be constructed with a single argument. Your class or role must use this module and then use the single_arg method to declare which attribute will be assigned the single argument value.

If the class is constructed using the typical argument list name/value pairs, or with a hashref, then things work as is usual. But, if the arguments are a single non-hashref value then that argument will be assigned to whatever attribute you have declared.

其他與 libmoosex-singlearg-perl 有關的套件

  • 依賴
  • 推薦
  • 建議
  • dep: libmoose-perl
    modern Perl object system framework
  • dep: perl
    Larry Wall's Practical Extraction and Report Language

下載 libmoosex-singlearg-perl

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