X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMouse.git;a=blobdiff_plain;f=lib%2FMouse%2FObject.pm;h=127a5757ba640bb87cb8ab9cb6dbfb3932882b91;hp=f68f390aae8b565308cc21746214e7a0cf1ed810;hb=bc69ee88207ce5c53f5c02dbd44cfabfbe6bae70;hpb=7ca5c5fb6e084d9c57bc022b336458afc74c6847 diff --git a/lib/Mouse/Object.pm b/lib/Mouse/Object.pm index f68f390..127a575 100644 --- a/lib/Mouse/Object.pm +++ b/lib/Mouse/Object.pm @@ -1,8 +1,5 @@ package Mouse::Object; -use strict; -use warnings; - -use Mouse::Util qw(does dump); +use Mouse::Util qw(does dump); # enables strict and warnings sub new { my $class = shift; @@ -77,25 +74,25 @@ __END__ =head1 NAME -Mouse::Object - we don't need to steenkin' constructor +Mouse::Object - The base object for Mouse classes =head1 METHODS -=head2 C<< new arguments -> Object >> +=head2 C<< new (Arguments) -> Object >> Instantiates a new C. This is obviously intended for subclasses. -=head2 C<< BUILDARGS(@args) -> HashRef >> +=head2 C<< BUILDARGS (Arguments) -> HashRef >> Lets you override the arguments that C takes. Return a hashref of parameters. -=head2 C<< BUILDALL \%args >> +=head2 C<< BUILDALL (\%args) >> Calls C on each class in the class hierarchy. This is called at the end of C. -=head2 C<< BUILD \%args >> +=head2 C<< BUILD (\%args) >> You may put any business logic initialization in BUILD methods. You don't need to redispatch or return any specific value.