Antispam-Toolkit
view release on metacpan or search on metacpan
lib/Antispam/Toolkit/Role/Database.pm view on Meta::CPAN
package Antispam::Toolkit::Role::Database;
BEGIN {
$Antispam::Toolkit::Role::Database::VERSION = '0.08';
}
use strict;
use warnings;
use namespace::autoclean;
use Moose::Role;
requires qw( match_value );
1;
# ABSTRACT: An interface-only role for classes store and match values
=pod
=head1 NAME
Antispam::Toolkit::Role::Database - An interface-only role for classes store and match values
=head1 VERSION
version 0.08
=head1 DESCRIPTION
This role should be consumed by any class which can store and match values. It
specifies a common interface for these classes, but does not specify an
implementation.
=head1 REQUIRED METHODS
This role requires one method:
=head2 $db->match_value($value)
This method takes a value and returns true if it is in the database, and false
if not. The exact mechanics of how matching is done are left up to the
implementation. This means you a match can be an exact match, a regular
expression match, etc.
=head1 BUGS
See L<Antispam::Toolkit> for bug reporting details.
=head1 AUTHOR
Dave Rolsky <autarch@urth.org>
=head1 COPYRIGHT AND LICENSE
This software is Copyright (c) 2011 by Dave Rolsky.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
=cut
__END__
( run in 1.388 second using v1.01-cache-2.11-cpan-8f98c5d2c55 )