[Moose-commits] r7520 - Moose/trunk/lib/Moose/Manual

hanekomu at code2.0beta.co.uk hanekomu at code2.0beta.co.uk
Tue Feb 3 23:02:44 GMT 2009


Author: hanekomu
Date: 2009-02-03 15:02:37 -0800 (Tue, 03 Feb 2009)
New Revision: 7520

Modified:
   Moose/trunk/lib/Moose/Manual/Attributes.pod
   Moose/trunk/lib/Moose/Manual/MooseX.pod
Log:
typo and style fixes for Moose::Manual documents

Modified: Moose/trunk/lib/Moose/Manual/Attributes.pod
===================================================================
--- Moose/trunk/lib/Moose/Manual/Attributes.pod	2009-02-03 22:45:50 UTC (rev 7519)
+++ Moose/trunk/lib/Moose/Manual/Attributes.pod	2009-02-03 23:02:37 UTC (rev 7520)
@@ -12,8 +12,8 @@
 to have classes that consist solely of attribute declarations.
 
 An attribute is a property that every member of a class has. For
-example, we might say that "every Person object has a first name and
-last name". Attributes can be optional, so that we can say "some Person
+example, we might say that "every C<Person> object has a first name and
+last name". Attributes can be optional, so that we can say "some C<Person>
 objects have a social security number (and some don't)".
 
 At its simplest, an attribute can be thought of as a named value (as
@@ -33,7 +33,7 @@
 
   has 'first_name' => ( is => 'rw' );
 
-This says that all person objects have an optional read-write
+This says that all C<Person> objects have an optional read-write
 "first_name" attribute.
 
 =head2 Read-write Vs Read-only
@@ -57,8 +57,9 @@
 read-only. If you declared it read-write, you get a read-write
 accessor. Simple.
 
-Given our Person example above, we now have a single C<first_name>
-accessor that can read or write a person object's first name.
+Given our C<Person> example above, we now have a single C<first_name>
+accessor that can read or write a C<Person> object's C<first_name>
+attribute's value.
 
 If you want, you can also explicitly specify the method names to be
 used for reading and writing an attribute's value. This is
@@ -101,7 +102,7 @@
 predicate methods for an attribute.
 
 A predicate method tells you whether or not a given attribute is
-currently set. Note an attribute can be explicitly set to undef or
+currently set. Note an attribute can be explicitly set to C<undef> or
 some other false value, but the predicate will return true.
 
 The clearer method unsets the attribute. This is I<not> the
@@ -156,9 +157,9 @@
   );
 
 There are a couple caveats worth mentioning in regards to what
-required actually means.
+"required" actually means.
 
-Basically, all it says is that this attribute (name) must be provided
+Basically, all it says is that this attribute (C<name>) must be provided
 to the constructor. It does not say anything about its value, so it
 could be C<undef>.
 
@@ -186,7 +187,7 @@
   );
 
 If the size attribute is not provided to the constructor, then it ends
-up being set to "medium":
+up being set to C<medium>:
 
   my $person = Person->new();
   $person->size; # medium

Modified: Moose/trunk/lib/Moose/Manual/MooseX.pod
===================================================================
--- Moose/trunk/lib/Moose/Manual/MooseX.pod	2009-02-03 22:45:50 UTC (rev 7519)
+++ Moose/trunk/lib/Moose/Manual/MooseX.pod	2009-02-03 23:02:37 UTC (rev 7520)
@@ -72,7 +72,7 @@
 =head1 MooseX::Params::Validate
 
 We have high hopes for the future of C<MooseX::Method::Signatures> and
-C<MooseX::Declare>. However, for now we recommend the decidely more
+C<MooseX::Declare>. However, for now we recommend the decidedly more
 clunky (but also faster and simpler) C<MooseX::Params::Validate>. This
 module lets you apply Moose types and coercions to any method
 arguments.




More information about the Moose-commits mailing list