MooseX::StrictConstructor::Role::Meta::Method::Constructor.3pm

Langue: en

Autres versions - même langue

Version: 2009-02-26 (fedora - 05/07/09)

Section: 3 (Bibliothèques de fonctions)

NAME

MooseX::StrictConstructor::Role::Meta::Method::Constructor - A role to make immutable constructors strict

SYNOPSIS

   Moose::Util::MetaRole::apply_metaclass_roles
       ( for_class => $caller,
         constructor_class_roles =>
         ['MooseX::StrictConstructor::Role::Meta::Method::Constructor'],
       );
 
 

DESCRIPTION

This role simply wraps "_generate_BUILDALL()" (from "Moose::Meta::Method::Constructor") so that immutable classes have a strict constructor.

AUTHOR

Dave Rolsky, "<autarch@urth.org>" Copyright 2007-2008 Dave Rolsky, All Rights Reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.