Specio:...bjectIsa(3)

✨ NAME ✨

Okay bestie, welcome to Specio:...bjectIsa(3) β€” a User Contributed Perl Documentation page about one very specific little constraint class πŸ’–.

Specio::Constraint::ObjectIsa is a class for constraints that require an object inheriting from a specific class. Periodt.


πŸŽ€ VERSION πŸŽ€

This page is for version 0.49, no cap.


πŸ’– SYNOPSIS πŸ’–

my $type = Specio::Constraint::ObjectIsa->new(...);
print $type->class;

See? Iconic. Brief. To the point. We love a concise queen πŸ’….


πŸ¦‹ DESCRIPTION πŸ¦‹

So this is a specialized type constraint class, okay? It’s for types that require an object which inherits from a specific class. That’s the whole vibe check: object? Yes. Inherits from the class you named? Also yes. Slay.


πŸ› οΈ API πŸ› οΈ

This class gives you all of the same methods as Specio::Constraint::Simple, with a few differences. Not me being dramatic β€” those differences are literally right here πŸ‘‡

πŸ’… Specio::Constraint::ObjectIsa->new( ... )

  • parent β€” if you pass it, it gets ignored. It’s always set to the Defined type. Sorry, bestie, that parameter is not the main character here.
  • inline_generator and constraint β€” also ignored. This class provides its own default inline generator subroutine reference, and it is very much booked and busy.
  • message_generator β€” this class overrides the default if none is provided. It’s giving β€œI got this, don’t worry.”
  • class β€” this one is actually required, bestie. It’s an additional parameter, and it must be a single class name. One class name. Not a list. Not a whole friend group. Just one πŸŽ€.

🌸 $object_isa->class

Returns the class name that was passed to the constructor. That’s it. That’s the method. Clean, simple, and honestly kind of iconic ✨.


πŸ‘‘ ROLES πŸ‘‘

This class does the Specio::Constraint::Role::IsaType, Specio::Constraint::Role::Interface, and Specio::Role::Inlinable roles. Three roles. All present. All accounted for. We love a multi-hyphenate πŸ’–.


πŸ› SUPPORT πŸ›

Bugs may be submitted at https://github.com/houseabsolute/Specio/issues.

Fr fr, if something is acting cursed, that’s the place to take it. Do not suffer in silence, bestie 😭.

πŸ“¦ SOURCE πŸ“¦

The source code repository for Specio can be found at https://github.com/houseabsolute/Specio.


🌈 AUTHOR 🌈

Dave Rolsky <autarch@urth.org>


This software is Copyright (c) 2012 - 2024 by Dave Rolsky.

This is free software, licensed under:

The Artistic License 2.0 (GPL Compatible)

The full text of the license can be found in the LICENSE file included with this distribution.


And that’s the whole page, bestie πŸ’– β€” it’s from perl v5.42.0, dated 2024-12-24, and it’s the Specio:...bjectIsa(3) page. Bye! πŸŽ€βœ¨

πŸ“¦ where this page comes from