MooseX::MultiInitArg man page on Fedora

Man page or keyword search:  
man Server   31170 pages
apropos Keyword Search (all sections)
Output format
Fedora logo
[printable version]

MooseX::MultiInitArg(3User Contributed Perl DocumentatiMooseX::MultiInitArg(3)

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.14.1			  2008-04-02	       MooseX::MultiInitArg(3)
[top]

List of man pages available for Fedora

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net