The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

TPath::Stringifiable - role requiring that a class have a to_string method

VERSION

version 1.007

DESCRIPTION

Role that enforces the presence of a to_string method. Makes sure the absence of this method where it is expected will be a compile time rather than run time error.

REQUIRED METHODS

to_string

Produces a sensible, human-readable stringification of the object. Some implementations of the method may expect parameters.

AUTHOR

David F. Houghton <dfhoughton@gmail.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2013 by David F. Houghton.

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