The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

App::PerlWatcher::Describable - The base role for providing description for UI

VERSION

version 0.16_1

ATTRIBUTES

describer

The subroutine, which takes description as an string, and allows to do with it something funny, e.g. add "location" in label for weather-watcher:

   describer   => sub { "Weather in Minsk: " . $_[0] },

Default value: sub, which just returns it's value. The describer means to be provided by user configs.

METHODS

description

The string description, it means to be provided by developer, e.g. watcher developer

start

Starts watcher. The parameter is callback, wich is been invoked with Status on watched event occurence

describe

Returns the result on passing description via describer. Means to be used in frontends

AUTHOR

Ivan Baidakou <dmol@gmx.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2013 by Ivan Baidakou.

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