1Class::MOP::Method::ConUssterrucCtoonrt(r3i)buted Perl DColcausmse:n:tMaOtPi:o:nMethod::Constructor(3)
2
3
4
6 Class::MOP::Method::Constructor - Method Meta Object for constructors
7
9 version 2.2014
10
12 use Class::MOP::Method::Constructor;
13
14 my $constructor = Class::MOP::Method::Constructor->new(
15 metaclass => $metaclass,
16 options => {
17 debug => 1, # this is all for now
18 },
19 );
20
21 # calling the constructor ...
22 $constructor->body->execute($metaclass->name, %params);
23
25 This is a subclass of Class::MOP::Method which generates constructor
26 methods.
27
29 Class::MOP::Method::Constructor->new(%options)
30 This creates a new constructor object. It accepts a hash reference
31 of options.
32
33 • metaclass
34
35 This should be a Class::MOP::Class object. It is required.
36
37 • name
38
39 The method name (without a package name). This is required.
40
41 • package_name
42
43 The package name for the method. This is required.
44
45 • is_inline
46
47 This indicates whether or not the constructor should be
48 inlined. This defaults to false.
49
50 $metamethod->is_inline
51 Returns a boolean indicating whether or not the constructor is
52 inlined.
53
54 $metamethod->associated_metaclass
55 This returns the Class::MOP::Class object for the method.
56
58 • Stevan Little <stevan@cpan.org>
59
60 • Dave Rolsky <autarch@urth.org>
61
62 • Jesse Luehrs <doy@cpan.org>
63
64 • Shawn M Moore <sartak@cpan.org>
65
66 • יובל קוג'מן (Yuval Kogman) <nothingmuch@woobling.org>
67
68 • Karen Etheridge <ether@cpan.org>
69
70 • Florian Ragwitz <rafl@debian.org>
71
72 • Hans Dieter Pearcey <hdp@cpan.org>
73
74 • Chris Prather <chris@prather.org>
75
76 • Matt S Trout <mstrout@cpan.org>
77
79 This software is copyright (c) 2006 by Infinity Interactive, Inc.
80
81 This is free software; you can redistribute it and/or modify it under
82 the same terms as the Perl 5 programming language system itself.
83
84
85
86perl v5.32.1 2021-01-27Class::MOP::Method::Constructor(3)