From 94eea87ce80cb39baeff9a1688eef8fd59449d41 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Wed, 22 Jun 2011 12:49:03 -0500 Subject: docs --- lib/Plack/Middleware/Class/Refresh.pm | 72 +++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) diff --git a/lib/Plack/Middleware/Class/Refresh.pm b/lib/Plack/Middleware/Class/Refresh.pm index d30e2de..afc8248 100644 --- a/lib/Plack/Middleware/Class/Refresh.pm +++ b/lib/Plack/Middleware/Class/Refresh.pm @@ -2,11 +2,33 @@ package Plack::Middleware::Class::Refresh; use strict; use warnings; use Plack::Util::Accessor 'verbose'; +# ABSTRACT: Refresh your app classes with Class::Refresh before requests use Class::Refresh; use base 'Plack::Middleware'; +=head1 SYNOPSIS + + use Plack::Builder; + builder { + enable 'Class::Refresh', verbose => 1; + ... + } + +=head1 DESCRIPTION + +This middleware simply calls C<< Class::Refresh->refresh >> before each +request, to ensure that the most recent versions of all of your classes are +loaded. This is a faster alternative to L, although +be sure you read the caveats in L, as this module will likely +be less reliable in some cases. + +You can set the C option when debugging to make it give a warning +whenever it refreshes any classes. + +=cut + sub call { my $self = shift; @@ -22,4 +44,54 @@ sub call { $self->app->(@_); } +=head1 BUGS + +No known bugs. + +Please report any bugs through RT: email +C, or browse to +L. + +=head1 SEE ALSO + +L + +L + +=head1 SUPPORT + +You can find this documentation for this module with the perldoc command. + + perldoc Plack::Middleware::Class::Refresh + +You can also look for information at: + +=over 4 + +=item * AnnoCPAN: Annotated CPAN documentation + +L + +=item * CPAN Ratings + +L + +=item * RT: CPAN's request tracker + +L + +=item * Search CPAN + +L + +=back + +=begin Pod::Coverage + +call + +=end Pod::Coverage + +=cut + 1; -- cgit v1.2.3-54-g00ecf