Class::MOP::Method::Constructor(3) | User Contributed Perl Documentation | Class::MOP::Method::Constructor(3) |
Class::MOP::Method::Constructor - Method Meta Object for constructors
version 2.2012
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->execute($metaclass->name, %params);
This is a subclass of Class::MOP::Method which generates constructor methods.
This should be a Class::MOP::Class object. It is required.
The method name (without a package name). This is required.
The package name for the method. This is required.
This indicates whether or not the constructor should be inlined. This defaults to false.
This software is copyright (c) 2006 by Infinity Interactive, Inc.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
2019-11-22 | perl v5.34.0 |