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 кБ28 кБ [списък на файловете]