NAME
XML::Axk::Object::TinyDefaults - Object::Tiny[::XS] wrapper that adds default values
SYNOPSIS
package MyClass;
use XML::Axk::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.
TODO replace this with Class::Tiny!
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.