1Moose::Meta::Method::DeUssterrucCtoonrt(r3i)buted Perl DMoocousmee:n:tMaettiao:n:Method::Destructor(3)
2
3
4
6 Moose::Meta::Method::Destructor - Method Meta Object for destructors
7
9 version 2.2201
10
12 This class is a subclass of Class::MOP::Method::Inlined that provides
13 Moose-specific functionality for inlining destructors.
14
15 To understand this class, you should read the
16 Class::MOP::Method::Inlined documentation as well.
17
19 "Moose::Meta::Method::Destructor" is a subclass of Moose::Meta::Method
20 and Class::MOP::Method::Inlined.
21
23 Moose::Meta::Method::Destructor->new(%options)
24 This constructs a new object. It accepts the following options:
25
26 • package_name
27
28 The package for the class in which the destructor is being inlined.
29 This option is required.
30
31 • name
32
33 The name of the destructor method. This option is required.
34
35 • metaclass
36
37 The metaclass for the class this destructor belongs to. This is
38 optional, as it can be set later by calling
39 "$metamethod->attach_to_class".
40
41 Moose::Meta;:Method::Destructor->is_needed($metaclass)
42 Given a Moose::Meta::Class object, this method returns a boolean
43 indicating whether the class needs a destructor. If the class or any of
44 its parents defines a "DEMOLISH" method, it needs a destructor.
45
47 See "BUGS" in Moose for details on reporting bugs.
48
50 • Stevan Little <stevan@cpan.org>
51
52 • Dave Rolsky <autarch@urth.org>
53
54 • Jesse Luehrs <doy@cpan.org>
55
56 • Shawn M Moore <sartak@cpan.org>
57
58 • יובל קוג'מן (Yuval Kogman) <nothingmuch@woobling.org>
59
60 • Karen Etheridge <ether@cpan.org>
61
62 • Florian Ragwitz <rafl@debian.org>
63
64 • Hans Dieter Pearcey <hdp@cpan.org>
65
66 • Chris Prather <chris@prather.org>
67
68 • Matt S Trout <mstrout@cpan.org>
69
71 This software is copyright (c) 2006 by Infinity Interactive, Inc.
72
73 This is free software; you can redistribute it and/or modify it under
74 the same terms as the Perl 5 programming language system itself.
75
76
77
78perl v5.34.0 2022-01-21Moose::Meta::Method::Destructor(3)