Cool, glad someone likes it. It's basically a way to get the power of Moo with the simplicity of Class::Tiny.
It's bigger than either Moo or Class::Tiny though because it uses Moo and a bunch of other stuff in the backend.
# Simple usage package Widget { use Mom q{ name sku price size }; } # Complex usage package Widget { use Mom q{ name :required :type(NonEmptyStr) sku :required :type(NonEmptySimpleStr) price :default(0) :type(Num) size :required :enum(xs,s,m,l,xl) }; }
In reply to Re: dear Mom -
by tobyink
in thread dear Mom -
by perlfan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |