Banal::Role::Fallback::Tiny - A tiny role that provides a 'fallback' method which helps building default values for object attributes.
version 0.001
Role::Tiny::With; with Banal::Role::Fallback::Tiny; has username => ( is => ro, isa => Str, lazy => 1, default => sub { fallback(keys=> [qw(username user)} );
This is a tiny role that provides a 'fallback' method for building default values for your attributes.
Please note that, although this module needs to be on CPAN for obvious reasons, it is really intended to be a collection of personal preferences, which are expected to be in great flux, at least for the time being.
Therefore, please do NOT base your own distributions on this one, since anything can change at any moment without prior notice, while I get accustomed to dzil myself and form those preferences in the first place... Absolutely nothing in this distribution is guaranteed to remain constant or be maintained at this point. Who knows, I may even give up on dzil altogether...
You have been warned.
Role::Tiny
Bugs may be submitted through the RT bug tracker (or bug-Banal-Role-Fallback@rt.cpan.org).
Ayhan ULUSOY <dev@tabulo.net>
This software is copyright (c) 2018 by Ayhan ULUSOY.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Banal::Role::Fallback, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Banal::Role::Fallback
CPAN shell
perl -MCPAN -e shell install Banal::Role::Fallback
For more information on module installation, please visit the detailed CPAN module installation guide.