Type::P...natives(3)

πŸ¦‹ NAME πŸ¦‹

Type::Params::Alternatives β€” a subclass of Type::Params::Signature for "multi" signatures.

ok so this manual page is Type::P...natives(3) (the header is doing a little truncation moment, no cap), straight out of User Contributed Perl Documentation. welcome to the group chat, bestie πŸ’–

πŸ’… STATUS πŸ’…

Real talk: this module is not covered by the Type-Tiny stability policy. so the stability policy is literally not its guardian angel. πŸ’€

✨ DESCRIPTION ✨

This is mostly internal code, but it can be used to provide basic introspection for signatures. it’s lowkey giving β€œbackstage pass” energy, fr fr.

This module is a subclass of Type::Parameters::Signature, so it inherits attributes and methods from that. periodt.

πŸŽ€ Constructor πŸŽ€

new(%attributes)

🌸 Attributes 🌸

not me being obsessed with read-only attributes, but every attribute here is read-only β€” no take-backsies, no sneaky edits. πŸ’…

  • base_options β€” HashRef.
  • alternatives β€” ArrayRef[HashRef|ArrayRef|CodeRef].
  • sig_class β€” ClassName.
  • meta_alternatives β€” ArrayRef[HashRef]. Automatically built from alternatives; do not set this yourself, bestie.
  • parameters β€” ArrayRef. Overridden from the parent class to always return the empty arrayref. iconic behavior, honestly.
  • message β€” Str. Error message to be thrown when none of the alternatives match. This is a bare attribute with no accessor method β€” so there’s no accessor method coming to save you. πŸ™ˆ

😭 BUGS 😭

Please report any bugs to <https://github.com/tobyink/p5-type-tiny/issues>. do it for the plot, bestie.

πŸ”₯ SEE ALSO πŸ”₯

  • Type::Params
  • Type::Params::Signature

πŸ‘‘ AUTHOR πŸ‘‘

Toby Inkster <tobyink@cpan.org>. πŸ‘‘

This software is copyright (c) 2023-2025 by Toby Inkster.

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

🫢 DISCLAIMER OF WARRANTIES 🫢

THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
πŸŽ€ ok that’s the whole page, bestie. this footer moment came from perl v5.42.2, dated 2026-04-07, and the page is Type::P...natives(3). mwah πŸ’‹
πŸ“¦ where this page comes from