Is there something like MooseX::ClassAttribute for Moops?
Note, that I want static/class attributes using the Moo backend, as I do not want to bring in the Moose backend.
Is there something like MooseX::ClassAttribute for Moops?
Note, that I want static/class attributes using the Moo backend, as I do not want to bring in the Moose backend.
On
It looks like what you need is MooX::ClassAttribute
"declare class attributes Moose-style... but without Moose"
I wrote a MooX::ClassAttribute, but there are often better ways to do things than class attributes.
If you want "ro" class data, then consider
use constantinstead.If you want "rw" data, then consider an
ourvariable, which has an advantage over class attributes: you can use thelocalkeyword to dynamically scope changes. (And if you want type constraints, then Type::Tie.)