Change BUGS so it always tells people to look at Moose/BUGS rather than telling them...
[gitmo/Moose.git] / lib / Moose / Meta / Attribute / Native / MethodProvider / Hash.pm
index d8282d8..7943d67 100644 (file)
@@ -1,7 +1,7 @@
 package Moose::Meta::Attribute::Native::MethodProvider::Hash;
 use Moose::Role;
 
-our $VERSION   = '0.87';
+our $VERSION   = '0.93';
 $VERSION = eval $VERSION;
 our $AUTHORITY = 'cpan:STEVAN';
 
@@ -59,9 +59,9 @@ sub count : method {
     return sub { scalar CORE::keys %{ $reader->( $_[0] ) } };
 }
 
-sub empty : method {
+sub is_empty : method {
     my ( $attr, $reader, $writer ) = @_;
-    return sub { scalar CORE::keys %{ $reader->( $_[0] ) } ? 1 : 0 };
+    return sub { scalar CORE::keys %{ $reader->( $_[0] ) } ? 0 : 1 };
 }
 
 
@@ -188,10 +188,8 @@ Moose::Meta::Attribute::Native::MethodProvider::Hash
 =head1 DESCRIPTION
 
 This is a role which provides the method generators for
-L<Moose::Meta::Attribute::Trait::Native::Hash>.
-
-This role is composed from the
-L<Moose::Meta::Attribute::Trait::Native::ImmutableHash> role.
+L<Moose::Meta::Attribute::Native::Trait::Hash>. Please check there for
+documentation on what methods are provided.
 
 =head1 METHODS
 
@@ -201,70 +199,9 @@ L<Moose::Meta::Attribute::Trait::Native::ImmutableHash> role.
 
 =back
 
-=head1 PROVIDED METHODS
-
-=over 4
-
-=item B<count>
-
-Returns the number of elements in the list.
-
-=item B<empty>
-
-If the list is populated, returns true. Otherwise, returns false.
-
-=item B<exists>
-
-Returns true if the given key is present in the hash
-
-=item B<defined>
-
-Returns true if the value of a given key is defined
-
-=item B<get>
-
-Returns an element of the hash by its key.
-
-=item B<keys>
-
-Returns the list of keys in the hash.
-
-=item B<values>
-
-Returns the list of values in the hash.
-
-=item B<kv>
-
-Returns the key, value pairs in the hash as array references
-
-=item B<elements>
-
-Returns the key, value pairs in the hash as a flattened list
-
-=item B<delete>
-
-Removes the element with the given key
-
-=item B<clear>
-
-Unsets the hash entirely.
-
-=item B<set>
-
-Sets the element in the hash at the given key to the given value.
-
-=item B<accessor>
-
-If passed one argument, returns the value of the requested key. If passed two
-arguments, sets the value of the requested key.
-
-=back
-
 =head1 BUGS
 
-All complex software has bugs lurking in it, and this module is no
-exception. If you find a bug please either email me, or add the bug
-to cpan-RT.
+See L<Moose/BUGS> for details on reporting bugs.
 
 =head1 AUTHOR