Number::Tolerant::Type - a type of tolerance
version 1.50
$Id: /my/cs/projects/tolerant/trunk/lib/Number/Tolerant/Type.pm 18205 2006-01-28T00:48:56.763611Z rjbs $
valid_args
my @args = $type_class->valid_args(@_);
If the arguments to valid_args are valid arguments for this type of tolerance, this method returns their canonical form, suitable for passing to "construct". Otherwise this method returns false.
"construct"
construct
my $object_guts = $type_class->construct(@args);
This method is passed the output of the "valid_args" method, and should return a hashref that will become the guts of a new tolerance.
"valid_args"
parse
my $tolerance = $type_class->parse($string);
This method returns a new, fully constructed tolerance from the given string if the given string can be parsed into a tolerance of this type.
Number::Tolerant
Ricardo SIGNES, <rjbs@cpan.org>
(C) 2004-2006, Ricardo SIGNES. Number::Tolerant is available under the same terms as Perl itself.
To install Number::Tolerant, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Number::Tolerant
CPAN shell
perl -MCPAN -e shell install Number::Tolerant
For more information on module installation, please visit the detailed CPAN module installation guide.