small adjustments

This commit is contained in:
Graham Knop 2009-12-04 10:41:13 -06:00
parent b6058e8b11
commit fdb72a6d7f
3 changed files with 4 additions and 3 deletions

View file

@ -38,6 +38,8 @@ sub set {
my $self = shift;
my $properties = shift;
for my $key ( keys %$properties ) {
return undef
unless $self->can($key);
$self->$key($properties->{$key});
}
return 1;