Class::MOP::Method::Constructor - Method Meta Object for constructors |
Class::MOP::Method::Constructor - Method Meta Object for constructors
use Class::MOP::Method::Constructor;
my $constructor = Class::MOP::Method::Constructor->new( metaclass => $metaclass, options => { debug => 1, # this is all for now }, );
# calling the constructor ... $constructor->body->($metaclass->name, %params);
This is a subclass of Class::MOP::Method
which deals with
class constructors. This is used when making a class immutable
to generate an optimized constructor.
new
.
new
.
new
.
new
.
Stevan Little <stevan@iinteractive.com>
Copyright 2006-2008 by Infinity Interactive, Inc.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Class::MOP::Method::Constructor - Method Meta Object for constructors |