1Class::MOP::Method::ConUssterrucCtoonrt(r3i)buted Perl DColcausmse:n:tMaOtPi:o:nMethod::Constructor(3)
2
3
4

NAME

6       Class::MOP::Method::Constructor - Method Meta Object for constructors
7

VERSION

9       version 2.2011
10

SYNOPSIS

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

DESCRIPTION

25       This is a subclass of Class::MOP::Method which generates constructor
26       methods.
27

METHODS

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

AUTHORS

58       ·   Stevan Little <stevan.little@iinteractive.com>
59
60       ·   Dave Rolsky <autarch@urth.org>
61
62       ·   Jesse Luehrs <doy@tozt.net>
63
64       ·   Shawn M Moore <code@sartak.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@weftsoar.net>
73
74       ·   Chris Prather <chris@prather.org>
75
76       ·   Matt S Trout <mst@shadowcat.co.uk>
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.28.0                      2018-05-16Class::MOP::Method::Constructor(3)
Impressum