| Verby documentation | Contained in the Verby distribution. |
Verby::Config::Source -
use Verby::Config::Source;
None that we are aware of. Of course, if you find a bug, let us know, and we will be sure to fix it.
We use Devel::Cover to test the code coverage of the tests, please refer to COVERAGE section of the Verby module for more information.
Yuval Kogman, <nothingmuch@woobling.org>
Copyright 2005-2008 by Infinity Interactive, Inc.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| Verby documentation | Contained in the Verby distribution. |
#!/usr/bin/perl package Verby::Config::Source; use Moose; our $VERSION = "0.05"; extends qw/Verby::Config::Data/; use Tie::Memoize; use Scalar::Util (); has data => ( isa => "HashRef", is => "ro", lazy => 1, default => sub { my $self = shift; Scalar::Util::weaken($self); # closure leak otherwise tie my %data, 'Tie::Memoize', sub { $self->get_key(shift) }; return \%data, }, ); sub get_key { die "subclass should extract keys from real config source"; } __PACKAGE__ __END__