Path::...::Enum(3pm)

πŸ“¦
version 1.08 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– Path::...::Enum(3pm) β€” aka Path::Dispatcher::Rule::Enum πŸ’–

okay bestie, listen. this is a Perl manpage, user-contributed documentation style, and it's about one specific lil rule class. it lives at Path::Dispatcher::Rule::Enum. let's get into it πŸ¦‹


✨ NAME ✨

Path::Dispatcher::Rule::Enum β€” one of a list of strings must match 🎯

like. literally that's the whole job. one of the strings has to hit or the rule doesn't go off. periodt.


🌸 VERSION 🌸

version 1.08 ✨


πŸŽ€ SYNOPSIS πŸŽ€

here's the vibe, verbatim, don't touch the code bestie:

my $rule = Path::Dispatcher::Rule::Enum->new(
    enum  => [qw(perl ruby python php)],
    block => sub { warn "I love " . shift->pos(1) },
);

look at that. a list of languages. a block that screams about love. iconic behaviour honestly πŸ‘‘


🫢 DESCRIPTION 🫢

so rules of this class check whether the path matches any of its "enum" strings. that's it. that's the tea. if the path is one of the strings in the enum list, slay, it matches πŸ’…


πŸ’œ ATTRIBUTES πŸ’œ

🌈 enum

the list of strings. this is the whole "one of these must match" situation from the DESCRIPTION. it's giving very important, ngl.

🌈 case_sensitive

it's on the list. the manpage does not elaborate. we do not invent lore here bestie, so that's genuinely all the original gives us πŸ™ˆ no cap.


πŸ”₯ SUPPORT πŸ”₯

got bugs? yeah, same, but like β€” the code kind. submit them through the RT bug tracker:

https://rt.cpan.org/Public/Dist/Display.html?Name=Path-Dispatcher

or you can email bug-Path-Dispatcher@rt.cpan.org πŸ’Œ

fr fr, if something's broken, tell the maintainers, don't just suffer in silence. main character energy includes filing tickets ✨

πŸ‘‘ AUTHOR πŸ‘‘

Shawn M Moore, <sartak at bestpractical.com> πŸ’–


This software is copyright (c) 2020 by Shawn M Moore.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. so like, go off, but respectfully 🧚


and that's the whole page, bestie!! source vibes: perl v5.30.3, dated 2020-07-13, and the doc itself is Path::...::Enum(3pm). tysm for reading, now go match some strings πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’…πŸ«Ά

πŸ“¦ where this page comes from