SPVM::Int(3)

πŸ“¦ version 0.990125, in alpine 3.24

✨ SPVM::Int ✨

Okay bestie, welcome to SPVM::Int β€” that's the page from the SPVM::Int(3) manual, and it's lowkey iconic. The whole vibe? An int value as an object. Yep, that's the entire NAME situation. An int value as an object. Slay.


πŸ’– DESCRIPTION

The Int class in SPVM represents an int value as an object. That's it, that's the whole personality. A little int but make it an object, main character energy fr fr. πŸŽ€


🌸 USAGE

Here's how you and this class link up:

my $int_object = Int->new(5);
my $int_value = $int_object->value;

Build the object, grab the value back out. Effortless. πŸ’…


πŸ¦‹ DETAILS

  • This class is immutable β€” once it's made, it's made. No take-backs, no edits, we respect the boundaries. ✨
  • This class is automatically loaded β€” it just shows up for you, no use-ing required, iykyk. 🫢

🌈 INTERFACES

  • Stringable β€” yes she implements it, she can string-ify herself, we been knew. πŸ‘‘

πŸ“ FIELDS

value

has value : ro int;

That's the value. Read-only (ro), so hands off the merch. πŸ™ˆ


πŸ”₯ CLASS METHODS

new

static method new : Int ($value : int);

Creates a new Int object with a int $value. You pass the int, it hands you back a whole object. Glow-up complete. ⭐


πŸ’œ INSTANCE METHODS

to_string

method to_string : string ();

Casts the value to string type and returns it. Your int goes to string finishing school and comes back looking expensive. πŸ’…βœ¨


Copyright (c) 2023 Yuki Kimoto

MIT License


Full credit where it's due β€” this page ships with perl v5.42.2 and is dated 2026-02-03. Thanks Yuki, MIT License legend, we appreciate you fr fr πŸ«ΆπŸŽ€
πŸ“¦ where this page comes from