The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Object::TinyDefaults - Object::Tiny[::XS] wrapper that adds default values

SYNOPSIS

    package MyClass;
    use Object::TinyDefaults { foo => 42 } qw(bar bat);

    package main;
    my $inst = MyClass->new(bar=>1);

Now MyClass has accessors foo(), bar(), and bat(), and values foo=42 and bar=1.

Requires Object::Tiny or Object::Tiny::XS. XS will be used if available.

COPYRIGHT

Copyright (c) 2018 Christopher White. All rights reserved.

This program is free software; you can redistribute it and/or modify it under the terms of the the Artistic License (2.0). Details are in the LICENSE file accompanying this distribution.