| Launcher-Cascade documentation | Contained in the Launcher-Cascade distribution. |
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".
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.
| Launcher-Cascade documentation | Contained in the Launcher-Cascade distribution. |
package Launcher::Cascade::Printable;
use strict; use warnings; use overload '""' => 'as_string';
sub as_string {}
1; # end of Launcher::Cascade::Printable