diff options
Diffstat (limited to 'Data-MultiValued/lib/Data/MultiValued/Ranges.pm')
-rw-r--r-- | Data-MultiValued/lib/Data/MultiValued/Ranges.pm | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Data-MultiValued/lib/Data/MultiValued/Ranges.pm b/Data-MultiValued/lib/Data/MultiValued/Ranges.pm index 25a1eec..9c69626 100644 --- a/Data-MultiValued/lib/Data/MultiValued/Ranges.pm +++ b/Data-MultiValued/lib/Data/MultiValued/Ranges.pm @@ -55,9 +55,14 @@ sub get { } sub clear { - my ($self) = @_; + my ($self,%args) = validated_hash( + \@_, + from => { isa => Num|Undef, optional => 1, }, + to => { isa => Num|Undef, optional => 1, }, + ); - $self->_clear_storage; + $self->_storage->clear(\%args); } + 1; |