[Moose-commits] r7634 - Moose/trunk/lib/Moose/Cookbook/Extending

autarch at code2.0beta.co.uk autarch at code2.0beta.co.uk
Thu Feb 12 17:03:14 GMT 2009


Author: autarch
Date: 2009-02-12 09:03:14 -0800 (Thu, 12 Feb 2009)
New Revision: 7634

Modified:
   Moose/trunk/lib/Moose/Cookbook/Extending/Recipe4.pod
Log:
Revise extending recipe 4


Modified: Moose/trunk/lib/Moose/Cookbook/Extending/Recipe4.pod
===================================================================
--- Moose/trunk/lib/Moose/Cookbook/Extending/Recipe4.pod	2009-02-12 17:01:25 UTC (rev 7633)
+++ Moose/trunk/lib/Moose/Cookbook/Extending/Recipe4.pod	2009-02-12 17:03:14 UTC (rev 7634)
@@ -27,7 +27,7 @@
 
   sub has_table {
       my $caller = shift;
-      $caller->meta()->table(shift);
+      $caller->meta->table(shift);
   }
 
 =head1 DESCRIPTION
@@ -35,7 +35,7 @@
 This recipe expands on the use of L<Moose::Exporter> we saw in
 L<Moose::Cookbook::Extending::Recipe1>. Instead of providing our own
 object base class, we provide our own metaclass class, and we also
-export a sugar subroutine C<has_table()>.
+export a C<has_table> sugar function.
 
 Given the above code, you can now replace all instances of C<use
 Moose> with C<use MyApp::Mooseish>. Similarly, C<no Moose> is now
@@ -69,6 +69,11 @@
 All of the normal Moose sugar (C<has()>, C<with()>, etc) is available
 when you C<use MyApp::Mooseish>.
 
+=head1 CONCLUSION
+
+Providing sugar functions can make your extension look much more
+Moose-ish. See L<Fey::ORM> for a more extensive example.
+
 =head1 AUTHOR
 
 Dave Rolsky E<lt>autarch at urth.orgE<gt>




More information about the Moose-commits mailing list