Dave Rolsky > Antispam-Toolkit-0.08 > Antispam::Toolkit::Role::Database

Download:
Antispam-Toolkit-0.08.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.08   Source  

NAME ^

Antispam::Toolkit::Role::Database - An interface-only role for classes store and match values

VERSION ^

version 0.08

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.

REQUIRED METHODS ^

This role requires one method:

$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.

BUGS ^

See Antispam::Toolkit for bug reporting details.

AUTHOR ^

Dave Rolsky <autarch@urth.org>

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)
syntax highlighting: