JE::Ob...Boolean(3pm)

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

πŸ’– JE::Object::Boolean πŸ’–

okay bestie, so this is the manual page for JE::Object::Boolean, which lives in the User Contributed Perl Documentation section (that's the 3pm part, iykyk). it's a whole JavaScript Boolean object class and it is literally here to serve.


✨ NAME ✨

JE::Object::Boolean β€” the JavaScript Boolean object class, and yes she is the object version, not the primitive one. we'll get to that. πŸŽ€


🌸 SYNOPSIS 🌸

here's the vibe in code, no notes:

use JE;

$j = new JE;

$js_bool_obj = new JE::Object::Boolean $j, 1;

$perl_bool = $js_bool_obj->value;

"$js_bool_obj";  # true

look at her go. stringifies to true, gives you value back, all of it. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

so this class implements JavaScript Boolean objects for JE. that's the whole gig, and she does it beautifully.

now here's the tea you actually need: don't mix her up with JE::Boolean. that module is out here implementing primitive boolean values β€” the raw little true/false vibes. this module is the one implementing the objects. primitives vs. objects, two different girls, two different jobs, both iconic. periodt. πŸ‘‘


πŸ’… METHODS πŸ’…

okay so for the descriptions of most of the methods, go read JE::Types β€” that's where the full rundown lives. only the stuff that's specific to JE::Object::Boolean is getting explained right here in this section, because that's what this page is for.

⭐ value

returns a Perl scalar, and it's either 1 or the empty string β€” well, technically !1, but who's counting. πŸ“


🌈 SEE ALSO 🌈

go give these a read too, they're all part of the family:

  • JE
  • JE::Types
  • JE::Object
  • JE::Boolean

πŸ’€ heads up bestie: if you came here looking for primitive booleans, you're in the wrong house. JE::Boolean is that way. this page is objects only, no cap.

and that's the page!! this was written for perl v5.36.0, dated 2023-08-25, and yes the footer is out here calling it JE::Ob...Boolean(3pm) because even the manual page header couldn't fit her whole name. truncated name, full slay. 🫢✨

πŸ“¦ where this page comes from