Bolts::Meta::Initializer - Store a path and parameters for acquisition
version 0.143171
Describes an initializer, which is just a path and set of parameters used to make a call to "acquire" in Bolts::Role::Locator within a Bolts::Role::Initializer for any attributed tagged with the Bolts::Initializer trait.
Bolts::Initializer
This is the path that is passed into the constructor.
This is a reference to the hash of parameters passsed into the constructor (or an empty hash if none was passed).
my $init = Bolts::Meta::Initailizer->new(@path, \%parameters);
The BUILDARGS for this object has been modified so that the constructor takes arguments in the same form as "acquire" in Bolts::Role::Locator.
BUILDARGS
my (@path, \%parameters) = $init->get;
Returns the contents of this object in a form that can be passed directly on to "acquire" in Bolts::Role::Locator.
Andrew Sterling Hanenkamp <hanenkamp@cpan.org>
This software is copyright (c) 2014 by Qubling Software LLC.
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 Bolts, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Bolts
CPAN shell
perl -MCPAN -e shell install Bolts
For more information on module installation, please visit the detailed CPAN module installation guide.