Bolts::Meta::Attribute::Traits::Initializer - Build an attribute with an initializer
version 0.143171
Sometimes it can be handy to partially break inversion of control to allow an object some control over it's own destiny. This attribute, given the short alias Bolts::Initializer, can help you do that.
See Bolts::Role::Initializer for details and a synopsis.
This is the type of initialization to perform on the intializer. It may be set to either "Array" or "Scalar" and defaults to "Scalar".
The initializer is given as a single value. Either the actual value to be passed through or a Bolts::Meta::Initializer object.
The initializer is given as an array reference of values. Each element of the array may be a Bolts::Meta::Initializer object or a real object to place in the array as is.
This is the name of the secondary attribute to use as the hidden initializer attribute. It defaults to <"_${name}_initializer">, where <${name}> is the name of this attribute.
<"_${name}_initializer"
<${name}
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.