Stevan Little > Class-Trait-0.07 > TPrintable

Download:
Class-Trait-0.07.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 0.01   Source   Latest Release: Class-Trait-0.31

NAME ^

TPrintable - Trait for adding stringification abilities to your object

DESCRIPTION ^

TPrintable gives your object automatic stringification abilities, as well as access to your original stringified object value.

REQUIREMENTS ^

toString

This method should return the stringified object.

OVERLOADS ^

""

This operator call the toString method to stringify the object.

METHODS ^

stringValue

This returns the normal perl stringified value, bypassing whatever toString might return.

AUTHOR ^

Stevan Little <stevan@iinteractive.com>

COPYRIGHT AND LICENSE ^

Copyright 2004, 2005 by Infinity Interactive, Inc.

http://www.iinteractive.com

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

syntax highlighting: