From: Shawn M Moore Date: Fri, 27 Jun 2008 03:46:57 +0000 (+0000) Subject: Doc for some of the new meta methods X-Git-Tag: 0.19~271 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f7b11a21869769d2b49bba4fa72d33fa54ad0c2e;p=gitmo%2FMouse.git Doc for some of the new meta methods --- diff --git a/lib/Mouse/Meta/Attribute.pm b/lib/Mouse/Meta/Attribute.pm index 22b87cb..af9e737 100644 --- a/lib/Mouse/Meta/Attribute.pm +++ b/lib/Mouse/Meta/Attribute.pm @@ -403,5 +403,15 @@ this attribute's type constraint; Checks that the given value passes this attribute's type constraint. Returns 1 on success, otherwise Ces. +=head2 clone_parent OwnerClass, AttributeName, %args -> Mouse::Meta::Attribute + +Creates a new attribute in OwnerClass, inheriting options from parent classes. +Accessors and helper methods are installed. Some error checking is done. + +=head2 get_parent_args OwnerClass, AttributeName -> Hash + +Returns the options that the parent class of C used for attribute +C. + =cut diff --git a/lib/Mouse/Meta/Class.pm b/lib/Mouse/Meta/Class.pm index 6c94c93..8ecb828 100644 --- a/lib/Mouse/Meta/Class.pm +++ b/lib/Mouse/Meta/Class.pm @@ -169,5 +169,14 @@ Returns the L with the given name. Returns the list of classes in method dispatch order, with duplicates removed. +=head2 clone_object Instance -> Instance + +Clones the given C which must be an instance governed by this +metaclass. + +=head2 clone_instance Instance, Parameters -> Instance + +Clones the given C and sets any additional parameters. + =cut