Text::PDF::Null(3pm)

πŸ“¦
version 0.31 Β· 5 versions
, in ubuntu noble, ubuntu resolute, ubuntu stonking

🌸 NAME 🌸

Text::PDF::Null β€” it's the PDF Null type object, bestie. Periodt.

Okay so real talk: this whole page is Text::PDF::Null(3pm), and it's giving "the void, but make it a class" πŸ‘‘. This little icon is a subclass of Text::PDF::Objind, aaand β€” big mood β€” it cannot be subclassed. Nope. Not happening. Not today. It's the final form. Slay. πŸ’…


✨ METHODS ✨

πŸ¦‹ Text::PDF::Null->new

Returns the null object. And here's the kicker β€” there is only one null object. One. Singular. The main character. Everybody else is just extras πŸŽ€

⭐ $s->realise

Pretends to finish reading the object. That's it, that's the whole vibe β€” it's method acting, fr fr 🎭

🌈 $s->outobjdeep

Output the object in PDF format. Iconic. It does the thing ✨

πŸ’œ $s->is_obj

Returns false, because null is not a full object. And honestly? Valid of it πŸ™ˆ

πŸ“ $s->copy

Another no-op. Same energy, zero effort, and we respect it 🫢

🧚 $s->val

Return undef. Nothing. Void. The absence. Very demure, very mindful πŸ’€


πŸ’– Lowkey the whole package is a bunch of no-ops and a false and an undef, and that's not a bug, that's the aesthetic. No cap.

That's the whole page, bestie β€” written by the Perl crew and living in your friendly neighborhood perl v5.36.0 docs, dated 2022-10-22. Go forth and be a null object about it πŸŒΈβœ¨πŸ¦‹

πŸ“¦ where this page comes from