diff options
Diffstat (limited to 'devel/p5-MooseX-OneArgNew/DESCR')
-rw-r--r-- | devel/p5-MooseX-OneArgNew/DESCR | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/devel/p5-MooseX-OneArgNew/DESCR b/devel/p5-MooseX-OneArgNew/DESCR new file mode 100644 index 00000000000..de302d482a1 --- /dev/null +++ b/devel/p5-MooseX-OneArgNew/DESCR @@ -0,0 +1,12 @@ +MooseX::OneArgNew lets your constructor take a single argument, which +will be translated into the value for a one-entry hashref. It is a +parameterized role with two parameters: + +type + The Moose type that the single argument must be for the one-arg form + to work. This should be an existing type, and may be either a string + type or a MooseX::Type. + +init_arg + This is the string that will be used as the key for the hashref + constructed from the one-arg call to new. |