NAME
Bolts::Meta::Attribute::Traits::Initializer - Build an attribute with an initializer
VERSION
version 0.143171
DESCRIPTION
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.
ATTRIBUTES
init_type
This is the type of initialization to perform on the intializer. It may be set to either "Array" or "Scalar" and defaults to "Scalar".
- Scalar
-
The initializer is given as a single value. Either the actual value to be passed through or a Bolts::Meta::Initializer object.
- Array
-
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.
special_initializer
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.
AUTHOR
Andrew Sterling Hanenkamp <hanenkamp@cpan.org>
COPYRIGHT AND LICENSE
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.