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 theDefinedtype. Sorry, bestie, that parameter is not the main character here.inline_generatorandconstraintβ 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>
π COPYRIGHT AND LICENSE π
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
- opensuse-leap 16.0: perl-Specio 0.490.0-160000.2.2 Β· Artistic-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms