debian man page for moosex::multiinitarg

Query: moosex::multiinitarg

OS: debian

Section: 3pm

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

MooseX::MultiInitArg(3pm)				User Contributed Perl Documentation				 MooseX::MultiInitArg(3pm)

NAME
MooseX::MultiInitArg - Attributes with aliases for constructor arguments.
SYNOPSIS
package Thinger; use Moose; use MooseX::MultiInitArg; has 'data' => ( metaclass => 'MultiInitArg', # For composability, you could use the following: # traits => ['MooseX::MultiInitArg::Trait'], is => 'ro', isa => 'Str', init_args => [qw(munge frobnicate)], ); package main; # All these are equivalent my $foo = Thinger->new(data => 'foo'); my $foo = Thinger->new(munge => 'foo'); my $foo = Thinger->new(frobnicate => 'foo');
DESCRIPTION
If you've ever wanted to be able to call an attribute any number of things while you're passing arguments to your object constructor, Now You Can. The primary motivator is that I have some attributes that were named inconsistently, and I wanted to rename them without breaking backwards compatibility with my existing API.
AUTHOR
Paul Driver, "<frodwith at cpan.org>"
COPYRIGHT AND LICENSE
Copyright 2007-2008 by Paul Driver. This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.10.1 2008-04-02 MooseX::MultiInitArg(3pm)
Related Man Pages
moosex::declare::syntax::keyword::method5.18(3pm) - mojave
moosex::getopt::dashes(3pm) - mojave
moosex::getopt::meta::attribute::nogetopt(3pm) - mojave
moosex::poe::sweetargs(3pm) - debian
moosex::types::set::object(3pm) - debian
Similar Topics in the Unix Linux Community
Adding the individual columns of a matrix.
How can I do this in VI editor?
Find columns in a file based on header and print to new file
Weird 'find' results