libclass-tiny-antlers-perl

Moose-like sugar for Class::Tiny

Description

Class::Tiny::Antlers provides Moose-like has, extends, with, before, after and around keywords for Class::Tiny. (The with keyword requires Role::Tiny; method modifiers require Class::Method::Modifiers.)

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 triggers).

Class::Tiny::Antlers does however hack in support for is => 'ro' and Moo-style is => 'rwp', clearers and predicates.

From version 0.24, Class::Tiny::Antlers also adds support for `isa` and `coerce` using Type::Tiny. (I mean, this is a TOBYINK module, so what do you expect?!) Technically MooseX::Types, MouseX::Types, Specio, and Type::Nano should work, but these are less tested.

Upload more screenshots

Please help extend the collection of screenshots. Just make a screenshot and upload it here. You don't need to register or anything.

Upload a screenshot

Hint: upload an image here from your clipboard with Ctrl-V


Homepage

https://metacpan.org/release/Class-Tiny-Antlers


Install this software package

If the package is available for the distribution you are currently using on your computer then install the software by clicking on…

Install libclass-tiny-antlers-perl