From: Jesse Luehrs Date: Sat, 7 May 2011 18:38:57 +0000 (-0500) Subject: fix up Moose::Object docs a bit X-Git-Tag: 2.0100~123 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d81ecac91121d43947e111c5beb9b028aa92f8ef;p=gitmo%2FMoose.git fix up Moose::Object docs a bit --- diff --git a/lib/Moose/Object.pm b/lib/Moose/Object.pm index 06b7cde..8dbd984 100644 --- a/lib/Moose/Object.pm +++ b/lib/Moose/Object.pm @@ -151,14 +151,14 @@ but it makes it easier to take advantage of all of Moose's features. =over 4 -=item B<< Moose::Object->new(%params) >> +=item B<< Moose::Object->new(%params|$params) >> This method calls C<< $class->BUILDARGS(@_) >>, and then creates a new instance of the appropriate class. Once the instance is created, it calls C<< $instance->BUILD($params) >> for each C method in the inheritance hierarchy. -=item B<< Moose::Object->BUILDARGS(%params) >> +=item B<< Moose::Object->BUILDARGS(%params|$params) >> The default implementation of this method accepts a hash or hash reference of named parameters. If it receives a single argument that @@ -173,7 +173,7 @@ This method should always return a hash reference of named options. This returns true if the object does the given role. -=item B +=item B<< $object->DOES($class_or_role_name) >> This is a a Moose role-aware implementation of L.