NAME
Class::Tiny::Antlers - Moose-like syntax for Class::Tiny
SYNOPSIS
{
package Point;
use Class::Tiny;
use Class::Tiny::Antlers;
has x => (is => 'ro');
has y => (is => 'ro');
}
{
package Point3D;
use Class::Tiny;
use Class::Tiny::Antlers;
extends 'Point';
has z => (is => 'ro');
}
DESCRIPTION
Class::Tiny::Antlers provides Moose-like has
, extends
and with
keywords for Class::Tiny. (The with
keyword requires Role::Tiny.)
Class::Tiny doesn't support all Moose's attribute options; has
should throw you an error if you try to do something it doesn't support (like builders, triggers or type constraints).
Class::Tiny::Antlers does however hack in support for is => 'ro'
and Moo-style is => 'rwp'
.
Class::Tiny::Antlers is currently distributed as part of Moops, but is fairly independent of the rest of it, and may be spun off as a separate release in the future.
BUGS
Please report any bugs to http://rt.cpan.org/Dist/Display.html?Queue=Moops.
SEE ALSO
Class::Tiny, Moose, Moo.
AUTHOR
Toby Inkster <tobyink@cpan.org>.
COPYRIGHT AND LICENCE
This software is copyright (c) 2013 by Toby Inkster.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
DISCLAIMER OF WARRANTIES
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.