Jeremy Stashewsky > TheSchwartz-Moosified > TheSchwartz::Moosified::Worker

Download:
TheSchwartz-Moosified-0.06.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  3
View/Report Bugs
Source  

NAME ^

TheSchwartz::Moosified::Worker - superclass for defining task behavior

SYNOPSIS ^

    package MyWorker;
    
    use base 'TheSchwartz::Moosified::Worker';

    sub work {
        my $class = shift;
        my $job = shift;

        print "Workin' hard or hardly workin'? Hyuk!!\n";

        $job->completed();
    }

DESCRIPTION ^

TheSchwartz::Moosified::Worker is just a copy of TheSchwartz::Worker to avoid an install of TheSchwartz

AUTHOR ^

Fayland Lam, <fayland at gmail.com>

COPYRIGHT & LICENSE ^

Copyright 2008 Fayland Lam, all rights reserved.

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

syntax highlighting: