NAME

Class::Delay - delay method dispatch until a trigerring event

SYNOPSIS

package PrintOut;
sub write {
   my $self = shift;
   print "printing: ", @_, "\n";
}
sub flush {
   print "flushed\n";
}

package DelayedPrint;
use base 'PrintOut';
use Class::Delay
   methods => [ 'write' ],
   release => [ 'flush' ];

package main;

DelayedPrint->write( "we'll write this later" ); # won't get through
                                                 # to PrintOuts 'write' yet
DelayedPrint->write( "this too" );
DelayedPrint->flush;  # all of the queued call are dispatched
DelayedPrint->write( "this won't be delayed" );

DEPENDENCIES

This module has external dependencies on the following modules:

Class::Accessor::Fast
Test::More
perl	5.006

INSTALLATION

perl Build.PL
perl Build test

and if all goes well

perl Build install

HISTORY

What changed over the last 3 revisions

0.01 Tuesday 21st October, 2003
Initial CPAN release
=back

AUTHOR

Richard Clamp <richardc@unixbeard.net>

COPYRIGHT

Copyright (C) 2003 Richard Clamp. All Rights Reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 61:

You forgot a '=back' before '=head1'