No, it's not part of the Meta namespace on CPAN. Class::Meta does class automation, data type validation, and provides an introdpection interface (metadata) for your classes.
So, what are you using Class::Meta for?
Cheers,
David
No, it's not part of the Meta namespace on CPAN. Class::Meta does class automation, data type validation, and provides an introdpection interface (metadata) for your classes.
So, what are you using Class::Meta for?
Cheers,
David
I use Class::Meta. I'm considering making it a way of life... Thanks!
I've extended it a bit with a Constructor that calls _initialize when it's done. I've also created a MethodCheckParameter class which creates the actual method (like a constructor with create=>1). That method validates the paramters passed in and creates and instance of a special dynamically built class::meta to hold those parametets. It uses goto to make the final call which is nice because "caller" still works as expected.
Unfortunately, I had to fork Meta.pm as opposed to extend it because the add_method sub did not add the method to $classes->{<package>}->{build_meth_ord}. I filed a CR with bugs-class-meta@cpan.org (#11689) about this.
It works like this: