JSON::TypeInference::Type - Classes of JSON types
The implementations of JSON::TypeInference::Type represent types of JSON values.
They must implement some methods that described below.
accepts($data: Any) # => Bool
Returns whether the given value is valid as the class.
name() # => Str
Returns a name of type.
signature() # => Str
Returns a signature of type.
If the type has some type parameters, the signature contains type parameters that sorted by name.
Copyright (C) aereal.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
aereal <aereal@aereal.org>
To install JSON::TypeInference, copy and paste the appropriate command in to your terminal.
cpanm
cpanm JSON::TypeInference
CPAN shell
perl -MCPAN -e shell install JSON::TypeInference
For more information on module installation, please visit the detailed CPAN module installation guide.