DOKK / manpages / debian 12 / libgraphics-color-perl / Graphics::Color::Equal.3pm.en
Graphics::Color::Equal(3pm) User Contributed Perl Documentation Graphics::Color::Equal(3pm)

Graphics::Color::Equal - Moose equality role

version 0.31

  package Graphics::Color::Foo;
  use Moose;
  with 'Graphics::Color::Equal';
  sub equal_to {
      my ($self, $other) = @_;
      
      # compare and return!
  }

Graphics::Color::Equal is a Moose role for equality.

Implement this.

Provided you implement "equal_to", this will be implemented for you!

Cory G Watson <gphat@cpan.org>

This software is copyright (c) 2014 by Cold Hard Code, LLC.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

2022-06-14 perl v5.34.0