MooseX::ExtraArgs - Save constructor arguments that were not consumed.
Create a class that uses this module:
has foo => ( is=>'ro', isa=>'Str' );
my $object = MyClass->new( foo => 32, bar => 16 );
This module provides access to any constructor arguments that were not assigned to an attribute. Where MooseX::StrictConstructor does not allow any unknown arguments, this module expects unknown arguments and saves them for later access.
This could be useful for proxy classes that expect extra arguments that will then be used to pass as arguments to the underlying implementation.
Aran Clary Deltac <firstname.lastname@example.org>
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install MooseX::ExtraArgs, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.