From: Chris Prather Date: Mon, 4 May 2009 16:26:00 +0000 (-0400) Subject: documentation fixes X-Git-Tag: 0.18_01~8^2~5 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=de9d98c6a3686c5cc696602da01905fedc7e7548;p=gitmo%2FMooseX-AttributeHelpers.git documentation fixes --- diff --git a/lib/MooseX/AttributeHelpers/MethodProvider/Hash.pm b/lib/MooseX/AttributeHelpers/MethodProvider/Hash.pm index 3479aeb..b6e9103 100644 --- a/lib/MooseX/AttributeHelpers/MethodProvider/Hash.pm +++ b/lib/MooseX/AttributeHelpers/MethodProvider/Hash.pm @@ -95,26 +95,48 @@ L role. =item B +Returns the number of elements in the hash. + =item B +Removes the element with the given key + =item B +Returns true if the value of a given key is defined + =item B +If the list is populated, returns true. Otherwise, returns false. + =item B +Unsets the hash entirely. + =item B +Returns true if the given key is present in the hash + =item B +Returns an element of the hash by its key. + =item B +Returns the list of keys in the hash. + =item B +Sets the element in the hash at the given key to the given value. + =item B +Returns the list of values in the hash. + =item B +Returns the key, value pairs in the hash + =back =head1 BUGS diff --git a/lib/MooseX/AttributeHelpers/MethodProvider/ImmutableHash.pm b/lib/MooseX/AttributeHelpers/MethodProvider/ImmutableHash.pm index db4d92f..b6faca0 100644 --- a/lib/MooseX/AttributeHelpers/MethodProvider/ImmutableHash.pm +++ b/lib/MooseX/AttributeHelpers/MethodProvider/ImmutableHash.pm @@ -86,20 +86,36 @@ L. =item B +Returns the number of elements in the list. + =item B +If the list is populated, returns true. Otherwise, returns false. + =item B +Returns true if the given key is present in the hash + =item B +Returns true if the value of a given key is defined + =item B +Returns an element of the hash by its key. + =item B +Returns the list of keys in the hash. + =item B +Returns the list of values in the hash. + =item B +Returns the key, value pairs in the hash + =back =head1 BUGS diff --git a/lib/MooseX/AttributeHelpers/MethodProvider/List.pm b/lib/MooseX/AttributeHelpers/MethodProvider/List.pm index a0c700c..091ba03 100644 --- a/lib/MooseX/AttributeHelpers/MethodProvider/List.pm +++ b/lib/MooseX/AttributeHelpers/MethodProvider/List.pm @@ -158,7 +158,7 @@ L. =item B -Returns the number of elements inthe list. +Returns the number of elements in the list. $stuff = Stuff->new; $stuff->options(["foo", "bar", "baz", "boo"]);