diff options
Diffstat (limited to 'lib/Data/MultiValued/RangeContainer.pm')
-rw-r--r-- | lib/Data/MultiValued/RangeContainer.pm | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/Data/MultiValued/RangeContainer.pm b/lib/Data/MultiValued/RangeContainer.pm index a444150..8dd9933 100644 --- a/lib/Data/MultiValued/RangeContainer.pm +++ b/lib/Data/MultiValued/RangeContainer.pm @@ -22,8 +22,6 @@ infinity if used as C<to>). The internal representation of a range is a hash with three keys, C<from> C<to> C<value>. -=head1 METHODS - =cut has _storage => ( @@ -39,7 +37,7 @@ has _storage => ( default => sub { [ ] }, ); -=head2 C<get> +=method C<get> my $value = $obj->get({ at => $point }); @@ -117,7 +115,7 @@ sub _partition_slots { return \@before,\@overlap,\@after; } -=head2 C<get_or_create> +=method C<get_or_create> $obj->get_or_create({ from => $min, to => $max }); @@ -152,7 +150,7 @@ sub get_or_create { return $range; } -=head2 C<clear> +=method C<clear> $obj->clear({ from => $min, to => $max }); @@ -271,7 +269,7 @@ sub _splice_slot { return $new; } -=head2 C<all_ranges> +=method C<all_ranges> my @ranges = $obj->all_ranges; |