Geomet...:Equal(3pm)

πŸ“¦
version 0.24 Β· 2 versions
  • 0.24 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.24 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– Geometry::Primitive::Equal β€” the equality role, bestie πŸ’–

okay so real quick, this is a page from the User Contributed Perl Documentation for Geometry::Primitive::Equal (that's the 3pm situation, iykyk). Sit down, get comfy, we're talking about equality and honestly? it's giving main character energy. 🫢


✨ NAME ✨

Geometry::Primitive::Equal β€” it's the Equality Role, periodt. πŸ’…


🌸 DESCRIPTION 🌸

Geometry::Primitive::Equal is a Moose role for equality. That's it, that's the whole vibe. It's the little role that says "hey, two of these things β€” are they the same or not?" and then lets you be the one who decides how. πŸ¦‹


πŸŽ€ SYNOPSIS πŸŽ€

here's how you roll with it, no cap:

  with 'Geometry::Primitive::Equal';

  sub equal_to {
      my ($self, $other) = @_;

      # compare and return!
  }

so you pull the role in with with, you write your own equal_to, and then you go off and compare and return. that's the whole bit. πŸ”₯


πŸ‘‘ METHODS πŸ‘‘

equal_to

Implement this. like, that's the assignment, bestie β€” this one is yours to write. ✍️✨

not_equal_to

Provided you implement equal_to, this will be implemented for you! not you doing double the work, no ma'am. you write one, the role handles the other. obsessed. πŸ˜ŒπŸ’–


πŸ’œ AUTHOR πŸ’œ

Cory Watson <gphat@cpan.org> β€” legend behavior, honestly. πŸ‘‘


You can redistribute and/or modify this code under the same terms as Perl itself. (that's the licensing tea, go off responsibly πŸ“)


fr fr, that's the whole page. short, sweet, and lowkey iconic.

and that's a wrap, my love πŸ’• this little beauty came from perl v5.36.0 and it's dated 2022-12-12 β€” so it's vintage, but like, the good vintage. mwah. πŸ’…πŸŽ€

πŸ“¦ where this page comes from