Rename Roles::Recipe2 to Roles::Restartable_AdvancedComposition
[gitmo/Moose.git] / lib / Moose / Manual / MOP.pod
index e1c9c4d..4398c53 100644 (file)
@@ -1,8 +1,10 @@
-=pod
+package Moose::Manual::MOP;
+
+# ABSTRACT: The Moose (and Class::MOP) meta API
 
-=head1 NAME
+__END__
 
-Moose::Manual::MOP - The Moose (and Class::MOP) meta API
+=pod
 
 =head1 INTRODUCTION
 
@@ -112,11 +114,7 @@ As an example, we can add a method to a class:
 
 Or an attribute:
 
-  $meta->add_attribute(
-      name => 'size',
-      is   => 'rw',
-      isa  => 'Int',
-  );
+  $meta->add_attribute( 'size' => ( is => 'rw', isa  => 'Int' ) );
 
 Obviously, this is much more cumbersome than using Perl syntax or
 Moose sugar for defining methods and attributes, but this API allows
@@ -128,10 +126,10 @@ class is immutable, calling any of these update methods will throw an
 exception.
 
 You can make a class mutable again simply by calling C<<
-$metaclass->make_mutable >>. Once you're done changing it, you can
-restore immutability by calling C<< $metaclass->make_immutable >>.
+$meta->make_mutable >>. Once you're done changing it, you can
+restore immutability by calling C<< $meta->make_immutable >>.
 
-However, the most common use for this part of of the meta API is as
+However, the most common use for this part of the meta API is as
 part of Moose extensions. These extensions should assume that they are
 being run before you make a class immutable.
 
@@ -144,25 +142,11 @@ recipes show various practical applications of the MOP.
 If you'd like to write your own extensions, one of the best ways to
 learn more about this is to look at other similar extensions to see
 how they work. You'll probably also need to read various API docs,
-including the docs for the various Moose::Meta::* classes and the
-C<Class::MOP> distribution.
+including the docs for the various C<Moose::Meta::*> and
+C<Class::MOP::*> classes.
 
 Finally, we welcome questions on the Moose mailing list and
 IRC. Information on the mailing list, IRC, and more references can be
 found in the L<Moose.pm docs|Moose/GETTING HELP>.
 
-=head1 AUTHOR
-
-Dave Rolsky E<lt>autarch@urth.orgE<gt> and Stevan Little
-E<lt>stevan@iinteractive.comE<gt>
-
-=head1 COPYRIGHT AND LICENSE
-
-Copyright 2009 by Infinity Interactive, Inc.
-
-L<http://www.iinteractive.com>
-
-This library is free software; you can redistribute it and/or modify
-it under the same terms as Perl itself.
-
 =cut