small adjustments
This commit is contained in:
parent
b6058e8b11
commit
fdb72a6d7f
3 changed files with 4 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue