package ThreatNet::Filter::Null; =pod =head1 NAME ThreatNet::Filter::Null - ThreatNet Filter to discard all messages =head1 DESCRIPTION The default C object returns true for all messages passed to its C method, and can thus be used as a logical "true" filter object if needed. C is a utility class which provides the logical opposite of this. Calls to the C method for Null filter objects B return false. Its the bit bucket of the ThreatNet Filter world. =head1 METHODS Methods are as for the parent L class. =cut use strict; use Params::Util '_INSTANCE'; use base 'ThreatNet::Filter'; use vars qw{$VERSION}; BEGIN { $VERSION = '0.20'; } sub keep { _INSTANCE($_[1], 'ThreatNet::Message') ? '' : undef; } 1; =pod =head1 SUPPORT All bugs should be filed via the bug tracker at L For other issues, or commercial enhancement and support, contact the author =head1 AUTHORS Adam Kennedy Eadamk@cpan.orgE =head1 SEE ALSO L, L =head1 COPYRIGHT Copyright (c) 2005 Adam Kennedy. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of the license can be found in the LICENSE file included with this module. =cut