Bolts::Locator - General purpose locator
version 0.143171
my $some_bag = MyApp::SomeBag->new; my $loc = Bolts::Locator->new($some_bag); # OR better... use Bolts::Util qw( locator_for ); my $loc = locator_for($some_bag);
This can be used to wrap any object, array, or hash reference in a Bolts::Role::Locator interface.
Bolts::Role::RootLocator
This implements "root" in Bolts::Role::Locator allowing the locator to be applied to any object, array or hash reference.
my $loc = Bolts::Locator->new($bag); my $loc = Bolts::Locator->new( root => $bag );
You may call the constructor with only a single argument. In that case, that argument is treated as "root".
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.