1Moose::Object(3)      User Contributed Perl Documentation     Moose::Object(3)
2
3
4

NAME

6       Moose::Object - The base object for Moose
7

VERSION

9       version 2.2013
10

DESCRIPTION

12       This class is the default base class for all Moose-using classes. When
13       you "use Moose" in this class, your class will inherit from this class.
14
15       It provides a default constructor and destructor, which run all of the
16       "BUILD" and "DEMOLISH" methods in the inheritance hierarchy,
17       respectively.
18
19       You don't actually need to inherit from this in order to use Moose, but
20       it makes it easier to take advantage of all of Moose's features.
21

METHODS

23   Moose::Object->new(%params|$params)
24       This method calls "$class->BUILDARGS(@_)", and then creates a new
25       instance of the appropriate class. Once the instance is created, it
26       calls "$instance->BUILD($params)" for each "BUILD" method in the
27       inheritance hierarchy.
28
29   Moose::Object->BUILDARGS(%params|$params)
30       The default implementation of this method accepts a hash or hash
31       reference of named parameters. If it receives a single argument that
32       isn't a hash reference it throws an error.
33
34       You can override this method in your class to handle other types of
35       options passed to the constructor.
36
37       This method should always return a hash reference of named options.
38
39   $object->does($role_name)
40       This returns true if the object does the given role.
41
42   $object->DOES($class_or_role_name)
43       This is a Moose role-aware implementation of "DOES" in UNIVERSAL.
44
45       This is effectively the same as writing:
46
47         $object->does($name) || $object->isa($name)
48
49       This method will work with Perl 5.8, which did not implement
50       "UNIVERSAL::DOES".
51
52   $object->dump($maxdepth)
53       This is a handy utility for Data::Dumpering an object. By default,
54       there is no maximum depth.
55
56   $object->DESTROY
57       A default destructor is provided, which calls
58       "$instance->DEMOLISH($in_global_destruction)" for each "DEMOLISH"
59       method in the inheritance hierarchy.
60

BUGS

62       See "BUGS" in Moose for details on reporting bugs.
63

AUTHORS

65       ·   Stevan Little <stevan.little@iinteractive.com>
66
67       ·   Dave Rolsky <autarch@urth.org>
68
69       ·   Jesse Luehrs <doy@tozt.net>
70
71       ·   Shawn M Moore <code@sartak.org>
72
73       ·   יובל קוג'מן (Yuval Kogman) <nothingmuch@woobling.org>
74
75       ·   Karen Etheridge <ether@cpan.org>
76
77       ·   Florian Ragwitz <rafl@debian.org>
78
79       ·   Hans Dieter Pearcey <hdp@weftsoar.net>
80
81       ·   Chris Prather <chris@prather.org>
82
83       ·   Matt S Trout <mst@shadowcat.co.uk>
84
86       This software is copyright (c) 2006 by Infinity Interactive, Inc.
87
88       This is free software; you can redistribute it and/or modify it under
89       the same terms as the Perl 5 programming language system itself.
90
91
92
93perl v5.32.0                      2020-07-28                  Moose::Object(3)
Impressum