The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Bolts::Injector::Store::Hash - Inject values into a hash

VERSION

version 0.143171

SYNOPSIS

    use Bolts;

    my $counter = 0;
    artifact thing => (
        builder => sub { +{} },
        keys => {
            counter => builder { ++$counter },
        },
    );

DESCRIPTION

This performs injection of a value into a hash.

ROLES

ATTRIBUTES

name

This is the name of the hash key to perform injection upon.

Defaults to the "key" in Bolts::Injector.

METHODS

post_inject_value

Performs the injection into a hash by key.

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.