package Graphics::Color::Equal; use Moose::Role; requires 'equal_to'; sub not_equal_to { my ($self, $other) = @_; not $self->equal_to($other); } no Moose; 1; __END__ =head1 NAME Graphics::Color::Equal - Moose equality role =head1 DESCRIPTION Graphics::Color::Equal is a Moose role for equality. =head1 SYNOPSIS with 'Graphics::Color::Equal'; sub equal_to { my ($self, $other) = @_; # compare and return! } =head1 METHODS =head2 equal_to Implement this. =head2 not_equal_to Provided you implement C, this will be implemented for you! =head1 AUTHOR Cory Watson =head1 COPYRIGHT & LICENSE Copyright 2008 - 2009 by Cory G Watson You can redistribute and/or modify this code under the same terms as Perl itself.