Cédric Bouvier > Launcher-Cascade-0.02 > Launcher::Cascade::Printable

Download:
Launcher-Cascade-0.02.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

Launcher::Cascade::Printable - a base class for printable objects

SYNOPSIS ^

    package MyPrintable;
    use base qw( Launcher::Cascade::Printable );

    sub new {

        ...
    }

    sub as_string {

        my $self = shift;
        ...
    }

    1;

DESCRIPTION ^

This class serves as a base class for objects that might be included in a launcher's errors list.

Methods

as_string

Subclasses of Launcher::Cascade::Printable should overload this method to return a string representing their content. as_string() will be invoked when the object is interpolated in a double-quoted string, or in any situation where it is "stringified".

SEE ALSO ^

Launcher::Cascade::Base, Launcher::Cascade::ListOfStrings.

AUTHOR ^

Cédric Bouvier <cbouvi@cpan.org>

COPYRIGHT & LICENSE ^

Copyright (C) 2006 Cédric Bouvier, 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: