From: Shawn M Moore Date: Tue, 8 Apr 2008 09:35:22 +0000 (+0000) Subject: Note that one benefit of making your class extend Moose::Object is that you get a... X-Git-Tag: 0_55~242 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=dec63b1ac3f931810b2bb917f49f0b3a158b712f;p=gitmo%2FMoose.git Note that one benefit of making your class extend Moose::Object is that you get a constructor --- diff --git a/lib/Moose/Cookbook/Recipe1.pod b/lib/Moose/Cookbook/Recipe1.pod index 9797f56..c5be366 100644 --- a/lib/Moose/Cookbook/Recipe1.pod +++ b/lib/Moose/Cookbook/Recipe1.pod @@ -51,9 +51,10 @@ Another important thing happens at this stage as well. Moose will automatically set your package's superclass to be L. The reason we do this, is so that we can be sure that your class will inherit from L and get the benefits that -provides (see L for details). However, you don't -actually I to inherit from L if you don't -want to. All Moose features will still be accessible to you. +provides (such as a constructor; see L for details). +However, you don't actually I to inherit from L +if you don't want to. All Moose features will still be accessible to +you. Now, onto the keywords. The first one we see here is C, which defines an instance attribute in your class: