in reply to dear Mom -
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) }; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: dear Mom -
by perlfan (Parson) on Jul 27, 2020 at 15:49 UTC |