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

NAME

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

DESCRIPTION

9       This serves as the base object for all Moose classes. Every effort will
10       be made to ensure that all classes which "use Moose" will inherit from
11       this class. It provides a default constructor and destructor, which run
12       all the BUILD and DEMOLISH methods in the class tree.
13
14       You don't actually need to inherit from this in order to use Moose
15       though. It is just here to make life easier.
16

METHODS

18       meta
19           This will return the metaclass associated with the given class.
20
21       new This will create a new instance and call "BUILDALL".
22
23       BUILDALL
24           This will call every "BUILD" method in the inheritance hierarchy,
25           and pass it a hash-ref of the the %params passed to "new".
26
27       DEMOLISHALL
28           This will call every "DEMOLISH" method in the inheritance hierarā€
29           chy.
30
31       does ($role_name)
32           This will check if the invocant's class "does" a given $role_name.
33           This is similar to "isa" for object, but it checks the roles
34           instead.
35
36       dump ($maxdepth)
37           Cmon, how many times have you written the following code while
38           debugging:
39
40            use Data::Dumper;
41            warn Dumper $obj;
42
43           It can get seriously annoying, so why not just use this.
44

BUGS

46       All complex software has bugs lurking in it, and this module is no
47       exception. If you find a bug please either email me, or add the bug to
48       cpan-RT.
49

AUTHOR

51       Stevan Little <stevan@iinteractive.com>
52
54       Copyright 2006, 2007 by Infinity Interactive, Inc.
55
56       <http://www.iinteractive.com>
57
58       This library is free software; you can redistribute it and/or modify it
59       under the same terms as Perl itself.
60
61
62
63perl v5.8.8                       2007-09-06                  Moose::Object(3)
Impressum