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


Launcher-Cascade documentation  | view source Contained in the Launcher-Cascade distribution.

Index


NAME

Top

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

SYNOPSIS

Top

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

    sub new {

        ...
    }

    sub as_string {

        my $self = shift;
        ...
    }

    1;

DESCRIPTION

Top

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

Top

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

AUTHOR

Top

Cédric Bouvier <cbouvi@cpan.org>

COPYRIGHT & LICENSE

Top


Launcher-Cascade documentation  | view source Contained in the Launcher-Cascade distribution.