diff options
author | Gianni Ceccarelli <gianni.ceccarelli@net-a-porter.com> | 2011-11-25 15:23:10 +0000 |
---|---|---|
committer | Gianni Ceccarelli <gianni.ceccarelli@net-a-porter.com> | 2011-11-25 15:23:10 +0000 |
commit | 75f20230821c883d919d6a3f84d3930862bb8fd7 (patch) | |
tree | 03933dd7cd89f6c910b6eae5e394c9e22bc2e2a9 /lib/Data/MultiValued/Ranges.pm | |
parent | changes bump for CPAN release (diff) | |
download | data-multivalued-75f20230821c883d919d6a3f84d3930862bb8fd7.tar.gz data-multivalued-75f20230821c883d919d6a3f84d3930862bb8fd7.tar.bz2 data-multivalued-75f20230821c883d919d6a3f84d3930862bb8fd7.zip |
minor fixes after seeing it on CPAN
Diffstat (limited to 'lib/Data/MultiValued/Ranges.pm')
-rw-r--r-- | lib/Data/MultiValued/Ranges.pm | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/Data/MultiValued/Ranges.pm b/lib/Data/MultiValued/Ranges.pm index 7193df6..3da1594 100644 --- a/lib/Data/MultiValued/Ranges.pm +++ b/lib/Data/MultiValued/Ranges.pm @@ -41,7 +41,8 @@ sub _build__storage { $obj->set({ from => $min, to => $max, value => $the_value }); Stores the given value for the given range. Throws -L<Data::MultiValued::Exceptions::BadRange> if C<< $min > $max >>. +L<Data::MultiValued::Exceptions::BadRange|Data::MultiValued::Exceptions/Data::MultiValued::Exceptions::BadRange> +if C<< $min > $max >>. The range is defined as C<< Num $x : $min <= $x < $max >>. A C<< from => undef >> means "from -Inf", and a C<< to => undef >> means "to @@ -87,9 +88,9 @@ sub set { my $value = $obj->get({ at => $point }); Retrieves the value for the given point. Throws a -L<Data::MultiValued::Exceptions::RangeNotFound> exception if no ranges -exist in this object that include the point (remember that a range -does not include its C<to> point). +L<Data::MultiValued::Exceptions::RangeNotFound|Data::MultiValued::Exceptions/Data::MultiValued::Exceptions::RangeNotFound> +exception if no ranges exist in this object that include the point +(remember that a range does not include its C<to> point). A C<< at => undef >> means "at -Inf". Not passing in C<at> is equivalent to passing C<undef>. @@ -114,7 +115,8 @@ sub get { $obj->clear({ from => $min, to => $max }); Deletes all values for the given range. Throws -L<Data::MultiValued::Exceptions::BadRange> if C<< $min > $max >>. +L<Data::MultiValued::Exceptions::BadRange|Data::MultiValued::Exceptions/Data::MultiValued::Exceptions::BadRange> +if C<< $min > $max >>. A C<< from => undef >> means "from -Inf", and a C<< to => undef >> means "to +Inf". Not passing in C<from> or C<to> is equivalent to |