The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Test::C2FIT::TypeAdapter - Base class of all TypeAdapters.

SYNOPSIS

You typically subclass TypeAdapter. Implement at least parse(), eventually equals() and toString().

DESCRIPTION

When your data is not stored as string, then you'll propably need an TypeAdapter. E.g.: duration, which is displayed (and entered) in the form "MMM:SS" but stored as number of seconds.

METHODS

parse($string)

Returns the internal representation of $string. Either this is an object instance, but it can be also a scalar value.

toString()

Returns the stringified representation of the internal value.

SEE ALSO

Extensive and up-to-date documentation on FIT can be found at: http://fit.c2.com/