NAME
Bolts::Locator - General purpose locator
VERSION
version 0.143171
SYNOPSIS
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);
DESCRIPTION
This can be used to wrap any object, array, or hash reference in a Bolts::Role::Locator interface.
ROLES
ATTRIBUTES
root
This implements "root" in Bolts::Role::Locator allowing the locator to be applied to any object, array or hash reference.
METHODS
new
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".
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.