{"id":7313,"date":"2022-12-20T19:37:40","date_gmt":"2022-12-20T22:37:40","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/mooseobject-man3\/"},"modified":"2022-12-20T19:37:40","modified_gmt":"2022-12-20T22:37:40","slug":"mooseobject-man3","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/mooseobject-man3\/","title":{"rendered":"Moose::Object (man3)"},"content":{"rendered":"<h1 align=\"center\">Moose::Object<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#VERSION\">VERSION<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#METHODS\">METHODS<\/a><br \/> <a href=\"#BUGS\">BUGS<\/a><br \/> <a href=\"#AUTHORS\">AUTHORS<\/a><br \/> <a href=\"#COPYRIGHT AND LICENSE\">COPYRIGHT AND LICENSE<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Moose::Object \u2212 The base object for Moose<\/p>\n<h2>VERSION <a name=\"VERSION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">version 2.2014<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">This class is the default base class for all Moose-using classes. When you &#8220;use Moose&#8221; in this class, your class will inherit from this class.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">It provides a default constructor and destructor, which run all of the &#8220;BUILD&#8221; and &#8220;DEMOLISH&#8221; methods in the inheritance hierarchy, respectively.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">You don\u2019t actually <i>need<\/i> to inherit from this in order to use Moose, but it makes it easier to take advantage of all of Moose\u2019s features.<\/p>\n<h2>METHODS <a name=\"METHODS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Moose::Object\u2212>new(%params|$params)<\/b> <br \/> This method calls &#8220;$class\u2212>BUILDARGS(@_)&#8221;, and then creates a new instance of the appropriate class. Once the instance is created, it calls &#8220;$instance\u2212>BUILD($params)&#8221; for each &#8220;BUILD&#8221; method in the inheritance hierarchy.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Moose::Object\u2212> <small>BUILDARGS<\/small> (%params|$params)<\/b> <br \/> The default implementation of this method accepts a hash or hash reference of named parameters. If it receives a single argument that <i>isn\u2019t<\/i> a hash reference it throws an error.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">You can override this method in your class to handle other types of options passed to the constructor.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">This method should always return a hash reference of named options.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>$object\u2212>does($role_name)<\/b> <br \/> This returns true if the object does the given role.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>$object\u2212> <small>DOES<\/small> ($class_or_role_name)<\/b> <br \/> This is a Moose role-aware implementation of &#8221; <small>DOES&#8221;<\/small> in <small>UNIVERSAL<\/small> .<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">This is effectively the same as writing:<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">$object\u2212>does($name) || $object\u2212>isa($name)<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">This method will work with Perl 5.8, which did not implement &#8220;UNIVERSAL::DOES&#8221;.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>$object\u2212>dump($maxdepth)<\/b> <br \/> This is a handy utility for Data::Dumpering an object. By default, there is no maximum depth.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>$object\u2212> <small>DESTROY<\/small><\/b> <br \/> A default destructor is provided, which calls &#8220;$instance\u2212>DEMOLISH($in_global_destruction)&#8221; for each &#8220;DEMOLISH&#8221; method in the inheritance hierarchy.<\/p>\n<h2>BUGS <a name=\"BUGS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">See &#8221; <small>BUGS&#8221;<\/small> in Moose for details on reporting bugs.<\/p>\n<h2>AUTHORS <a name=\"AUTHORS\"><\/a> <\/h2>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p style=\"margin-top: 1em\">\u2022<\/p>\n<\/td>\n<td width=\"5%\"><\/td>\n<td width=\"83%\">\n<p style=\"margin-top: 1em\">Stevan Little <stevan@cpan.org><\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p>\u2022<\/p>\n<\/td>\n<td width=\"5%\"><\/td>\n<td width=\"83%\">\n<p>Dave Rolsky <autarch@urth.org><\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p>\u2022<\/p>\n<\/td>\n<td width=\"5%\"><\/td>\n<td width=\"83%\">\n<p>Jesse Luehrs <doy@cpan.org><\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p>\u2022<\/p>\n<\/td>\n<td width=\"5%\"><\/td>\n<td width=\"83%\">\n<p>Shawn M Moore <sartak@cpan.org><\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p>\u2022<\/p>\n<\/td>\n<td width=\"5%\"><\/td>\n<td width=\"83%\">\n<p>\u00d7\u00d7\u00d7\u00d7 \u00d7\u00a7\u00d7\u00d7\u2019\u00d7\u00d7 (Yuval Kogman) <nothingmuch@woobling.org><\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p>\u2022<\/p>\n<\/td>\n<td width=\"5%\"><\/td>\n<td width=\"83%\">\n<p>Karen Etheridge <ether@cpan.org><\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p>\u2022<\/p>\n<\/td>\n<td width=\"5%\"><\/td>\n<td width=\"83%\">\n<p>Florian Ragwitz <rafl@debian.org><\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p>\u2022<\/p>\n<\/td>\n<td width=\"5%\"><\/td>\n<td width=\"83%\">\n<p>Hans Dieter Pearcey <hdp@cpan.org><\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p>\u2022<\/p>\n<\/td>\n<td width=\"5%\"><\/td>\n<td width=\"83%\">\n<p>Chris Prather <chris@prather.org><\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p>\u2022<\/p>\n<\/td>\n<td width=\"5%\"><\/td>\n<td width=\"83%\">\n<p>Matt S Trout <mstrout@cpan.org><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<h2>COPYRIGHT AND LICENSE <a name=\"COPYRIGHT AND LICENSE\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">This software is copyright (c) 2006 by Infinity Interactive, Inc.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">This is free software; you can redistribute it and\/or modify it under the same terms as the Perl 5 programming language system itself.<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  Moose::Object \u2212 The base object for Moose <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[3007,3633],"class_list":["post-7313","post","type-post","status-publish","format-standard","hentry","category-sin-categoria","tag-man3","tag-mooseobject"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/7313","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=7313"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/7313\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=7313"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=7313"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=7313"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}