Object...lidate(3pm)

πŸ“¦
version 0.16 Β· 3 versions
, in ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– Object::Lazy::Validate β€” bestie edition πŸ’–

okay so this is Object::Lazy::Validate, and yeah the header on the original page is kinda squished (Object...lidate(3pm) β€” the terminal truncates it, not us πŸ’…), but the full name is Object::Lazy::Validate and it lives in the User Contributed Perl Documentation section, i.e. section 3pm. Perl module vibes. Let's GO πŸ¦‹


✨ NAME ✨

Object::Lazy::Validate β€” a validator and initializer for Object::Lazy. it's giving "make sure your constructor params aren't a whole mess before anything explodes" πŸŽ€

🌸 VERSION 🌸

0.12 β€” that's the version, bestie. write it down. πŸ“

⭐ SYNOPSIS ⭐

here's the whole flex, like literally the entire usage of this module:

use Object::Lazy::Validate;

my ($class, $params) = Object::Lazy::Validate::validate_new(@_);

$params = Object::Lazy::Validate::init($params);

that's it. that's the whole thing. short and iconic, i fear πŸ‘‘

πŸ’œ DESCRIPTION πŸ’œ

so Object::Lazy::Validate is a validator and initializer for Object::Lazy. it shows up, it checks your stuff, it sets your stuff up. main character energy fr fr ✨


🫢 SUBROUTINES/METHODS 🫢

πŸ’… sub validate_new

this one is the validator for the constructor of the package Object::Lazy. it's the bouncer at the club door of your constructor. everyone gets checked. no cap. πŸšͺ✨

🧚 sub init

this one is the initializer for the constructor of the package ObjectLazy. yes, we said ObjectLazy right there in the original β€” no underscore β€” and we are not fixing it, we are just reporting it exactly as it is, because facts are facts πŸ™ˆπŸ’–


😭 DIAGNOSTICS 😭

both the validator and the initializer can confess at false parameters. like, they will straight up confess β€” that's the Perl thing where it tells you where it died β€” if your parameters are false. so if you pass garbage, expect drama. it's giving snitching, lowkey but for your own good πŸ’€

🌈 CONFIGURATION AND ENVIRONMENT 🌈

nothing

like. nothing. no env vars, no config files, no secret switches. pristine. clean girl aesthetic ✨

πŸ“ DEPENDENCIES πŸ“

  • Params::Validate

that's the one. that's the whole list. it needs Params::Validate to do its lil parameter-checking thing 🫢

🌸 INCOMPATIBILITIES 🌸

not known

like, none that we know of?? if you find one, that's a you problem and also please tell someone πŸ’€

πŸ’œ BUGS AND LIMITATIONS πŸ’œ

not known

again β€” none known. it's just out here living its best life with no known bugs 😌✨ i know. i know. suspiciously smooth. but that's what the page says, so that's what we report πŸ”₯

πŸ‘‘ AUTHOR πŸ‘‘

Steffen Winkler β€” the icon who wrote this, periodt. πŸŽ€

Copyright (c) 2007 - 2012, Steffen Winkler "<steffenw at cpan.org>". All rights reserved.

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

so yeah β€” free software, same terms as Perl itself, all rights reserved. legal girlies stay winning πŸ’…


okay that's the whole page bestie, you're officially educated 🫢 go validate something ✨

and a lil sign-off for the road: this page came from perl v5.36.0 and it's dated 2022-10-16. remember the date, remember the version, slay πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from