Path::...::Route(3pm)

πŸ“¦
version 0.15 Β· 4 versions
, in debian bookworm, ubuntu noble

πŸ’– Path::...::Route πŸ’–

okay so this is a page from the User Contributed Perl Documentation set β€” Path::...::Route(3pm) bestie, we're in it now 🫢


✨ NAME ✨

Path::Router::Route β€” it's an object that represents a route. no cap, that's the whole job πŸ’…


🌸 VERSION 🌸

version 0.15 β€” she's giving vintage, she's giving stable, she's giving ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea, bestie: this object gets created by Path::Router when you call the add_route method. that's it, that's the origin story πŸŽ€

lowkey you will never create these bad boys yourself β€” they get made for you. but sometimes you'll wanna peek inside one and be nosy, and that's totally valid. that's called introspection and it's iconic πŸ’œ


πŸ‘‘ METHODS πŸ‘‘

okay so here's the full roster, the whole squad, the main character lineup. every single one of them, no skipping, no gatekeeping:

  • new (path = $path, ?%options)> β€” the constructor moment ✨ (yes that's exactly how it's written, don't come for me)
  • clone
  • path
  • target
  • has_target
  • components
  • length
  • defaults
  • has_defaults
  • validations
  • has_validations
  • has_validation_for
  • create_default_mapping
  • match
  • generate_match_code

that's all of them. every last one. i would never leave one out, that's not the vibe πŸ’–


πŸ” Component checks πŸ”

the "is this component okay" girlies:

  • get_component_name ($component)
  • is_component_optional ($component)
  • is_component_variable ($component)

πŸ“ Length methods πŸ“

just the one, but she's doing numbers:

  • length_without_optionals

🧚 Introspection 🧚

looking at yourself, examining yourself, self-reflection era:

  • meta

πŸ’€ BUGS πŸ’€

okay real talk: all complex software has bugs lurking in it, and this module is no exception. she's not immune, nobody's immune, it's giving humbling 😭

if you find a bug β€” and bestie, you might β€” you've got two options:

  1. email me
  2. add the bug to cpan-RT

either one. both valid. periodt πŸŽ€


🌈 AUTHOR 🌈

Stevan Little <stevan@cpan.org> πŸ‘‘


Copyright 2008-2011 Infinity Interactive, Inc.

<http://www.iinteractive.com>

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. 🫢


🌈 AUTHOR 🌈

Stevan Little <stevan@cpan.org> πŸ‘‘


This software is copyright (c) 2016 by Infinity Interactive.

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


and that's the whole page bestie!! no notes, ate, left no crumbs πŸ’…βœ¨

signing off with the receipts: this was perl v5.34.0, dated 2022-06-16, and yeah the title is Path::...::Route(3pm) β€” mwah, love u, bye πŸŽ€πŸ¦‹πŸ’–

πŸ“¦ where this page comes from