diff options
author | Gianni Ceccarelli <gianni.ceccarelli@net-a-porter.com> | 2011-11-25 15:33:44 +0000 |
---|---|---|
committer | Gianni Ceccarelli <gianni.ceccarelli@net-a-porter.com> | 2011-11-25 15:33:44 +0000 |
commit | 15d8ff45fecd86558a00e1979a9800282793139c (patch) | |
tree | f3a12bb1eb1c39ee25f7f07f92d402eabc116def /lib/Data/MultiValued/Ranges.pm | |
parent | Build results of 44cf53d (on master) (diff) | |
parent | minor fixes after seeing it on CPAN (diff) | |
download | data-multivalued-15d8ff45fecd86558a00e1979a9800282793139c.tar.gz data-multivalued-15d8ff45fecd86558a00e1979a9800282793139c.tar.bz2 data-multivalued-15d8ff45fecd86558a00e1979a9800282793139c.zip |
Build results of 75f2023 (on master)
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 f4a2a2d..ff62a43 100644 --- a/lib/Data/MultiValued/Ranges.pm +++ b/lib/Data/MultiValued/Ranges.pm @@ -111,7 +111,8 @@ version 0.0.1_2 $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 @@ -143,9 +144,9 @@ just stored. 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>. @@ -158,7 +159,8 @@ untouched. $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 |