Re: Class attributes
[email protected] (Dave Rolsky)
| Newsgroups | perl.moose |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 21 Feb 2008, [email protected] wrote: > the statement > has 'foo' => ('is' => 'ro' ...) ; > > declares a instance attribute of objects created later on when ->new is called. > > Is there a way to have a class attribute that is created during compile time? package Foo; use MooseX::ClassAttribute; class_has 'Count' => ( ... ); -dave /*=================================================== VegGuide.Org www.BookIRead.com Your guide to all that's veg. My book blog ===================================================*/