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

package MyPrintable;
use base qw( Launcher::Cascade::Printable );
sub new {
...
}
sub as_string {
my $self = shift;
...
}
1;

This class serves as a base class for objects that might be included in a launcher's errors list.
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".

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

Cédric Bouvier <cbouvi@cpan.org>

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.