| Verby documentation | Contained in the Verby distribution. |
Verby::Config::Data::Mutable -
use Verby::Config::Data::Mutable;
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::Data::Mutable; use Moose; extends qw/Verby::Config::Data/; our $VERSION = "0.05"; use Carp qw/croak/; sub set { my ( $self, $field, $value ) = @_; $self->data->{$field} = $value; } sub export { my ( $self, $field ) = @_; if ($self->exists($field)){ my $value = $self->extract($field); foreach my $parent ($self->parents){ $parent->set($field, $value); } } else { croak "key $field does not exist in $self"; } } sub export_all { my $self = shift; foreach my $field (keys %{ $self->data }){ $self->export($field); } } __PACKAGE__ __END__