NAME

Banal::Role::Fallback::Tiny - A tiny role that provides a 'fallback' method which helps building default values for object attributes.

VERSION

version 0.001

SYNOPSIS

Role::Tiny::With;
with Banal::Role::Fallback::Tiny;

has username => (
  is => ro,
  isa => Str,
  lazy => 1,
  default => sub { fallback(keys=> [qw(username user)}
);

DESCRIPTION

This is a tiny role that provides a 'fallback' method for building default values for your attributes.

WARNING

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.

SEE ALSO

SUPPORT

Bugs may be submitted through the RT bug tracker (or bug-Banal-Role-Fallback@rt.cpan.org).

AUTHOR

Ayhan ULUSOY <dev@tabulo.net>

COPYRIGHT AND LICENSE

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.