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

SYNOPSIS

9         use Class::MOP::Method::Constructor;
10
11         my $constructor = Class::MOP::Method::Constructor->new(
12             metaclass => $metaclass,
13             options   => {
14                 debug => 1, # this is all for now
15             },
16         );
17
18         # calling the constructor ...
19         $constructor->body->($metaclass->name, %params);
20

DESCRIPTION

22       This is a subclass of "Class::MOP::Method" which deals with class con‐
23       structors.
24

METHODS

26       new (metaclass = $meta, options => \%options)>
27       options
28           This returns the options HASH which is passed into "new".
29
30       associated_metaclass
31           This returns the metaclass which is passed into "new".
32
33       attributes
34           This returns the list of attributes which are associated with the
35           metaclass which is passed into "new".
36
37       meta_instance
38           This returns the meta instance which is associated with the meta‐
39           class which is passed into "new".
40
41       is_inline
42           This returns a boolean, but since constructors are very rarely not
43           inlined, this always returns true for now.
44
45       initialize_body
46           This creates the code reference for the constructor itself.
47
48       Method Generators
49
50       generate_constructor_method
51       generate_constructor_method_inline
52

AUTHORS

54       Stevan Little <stevan@iinteractive.com>
55
57       Copyright 2006, 2007 by Infinity Interactive, Inc.
58
59       <http://www.iinteractive.com>
60
61       This library is free software; you can redistribute it and/or modify it
62       under the same terms as Perl itself.
63
64
65
66perl v5.8.8                       2007-11-07Class::MOP::Method::Constructor(3)
Impressum