Author: allison Date: Tue Apr 10 00:28:51 2007 New Revision: 18101 Modified: trunk/docs/pdds/pdd15_objects.pod
Log: [pdd]: Changes from latest round of comments: namespace method, remove_method, get_class vs getclass. Modified: trunk/docs/pdds/pdd15_objects.pod ============================================================================== --- trunk/docs/pdds/pdd15_objects.pod (original) +++ trunk/docs/pdds/pdd15_objects.pod Tue Apr 10 00:28:51 2007 @@ -373,6 +373,10 @@ Remove an attribute from the class. +=item remove_method(string *) + +Remove a method from the class. + =item remove_parent(string *) Remove a parent from the class. @@ -403,6 +407,12 @@ the class, and also sets the association with a namespace. With no argument it only returns the current value of the name attribute. +=item namespace + + $P1 = $P2.namespace() + +Retrieve the namespace object associated with the class. + =item new $P1 = $P2.new( 'myattrib' => "Foo" ) @@ -718,13 +728,18 @@ Remove an attribute from the role. +=item remove_method(string *) + +Remove a method from the role. + + =item remove_role(string *) Remove a role from the role. =back -=head3 Methods +=head3 Role Methods These methods are just syntactic sugar for the vtable methods. They are not included in the Role PMC by default, but added to Role as a role. @@ -733,14 +748,17 @@ =item name + $P1 = $P2.name( $S3 ) + The accessor for the name attribute. With no argument, it simply returns the current value for name. When passed an argument, it sets the name of the role, and also sets the association with a namespace. -When you associate a class with a namespace, it pulls in all of the -methods and vtable methods held within that namespace. And when -replacing one class with another in the association, it removes any -methods and vtable methods from the previous class. +=item namespace + + $P1 = $P2.namespace() + +Retrieve the namespace object associated with the role. =item attributes @@ -1038,8 +1056,8 @@ To create a class C<Foo> with the parents C<A> and C<B>, the code would be: - getclass $P0, "A" - getclass $P1, "B" + get_class $P0, "A" + get_class $P1, "B" subclass $P2, $P0, "Foo" addparent $P2, $P1