Specio:...:AnyDoes(3)
π NAME π
okay so bestie, welcome to Specio:...:AnyDoes(3) β that's this page in the User Contributed Perl Documentation, and the main character is Specio::Constraint::AnyDoes. it's a class for constraints which require a class name or an object that does a specific role. no cap, that's the whole name vibe. β¨
πΈ VERSION πΈ
version 0.49. slay. π
π¦ SYNOPSIS π¦
my $type = Specio::Constraint::AnyDoes->new(...);
print $type->role;
that's the whole little snippet, bestie: build a Specio::Constraint::AnyDoes with new(...), then print its role. iconic. π
π§ DESCRIPTION π§
this is a specialized type constraint class for types which require a class name or an object that does a specific role. it's giving specialized constraint energy and i'm obsessed. π
π API π
this class provides all of the same methods as Specio::Constraint::Simple, with a few differences β yes bestie, a few differences, and they matter:
π«Ά Specio::Constraint::AnyDoes->new( ... ) π«Ά
- the
parentparameter is ignored if you pass it, because it is always set to theDefinedtype. periodt. - the
inline_generatorandconstraintparameters are also ignored. this class provides its own default inline generator subroutine reference. lowkey iconic. - this class overrides the
message_generatordefault if none is provided. - finally, this class requires an additional parameter,
role. this must be a single role name. don't forget it, bestie. π
π $any_isa->role π
returns the role name passed to the constructor. that's it, that's the method. π¦
π ROLES π
this class does the Specio::Constraint::Role::DoesType, Specio::Constraint::Role::Interface, Specio::Role::Inlinable, and MooseX::Clone roles. all of them, and yes it ate. π
π₯ SUPPORT π₯
bugs may be submitted at https://github.com/houseabsolute/Specio/issues. if something's busted, that's the spot. π
β SOURCE β
the source code repository for Specio can be found at https://github.com/houseabsolute/Specio. go off, repo. π
π AUTHOR π
Dave Rolsky <autarch@urth.org> β yes, that's the author. π«Ά
πΈ COPYRIGHT AND LICENSE πΈ
okay legal moment, but make it cute: this software is Copyright (c) 2012 - 2024 by Dave Rolsky. fr fr.
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. read it if you need the whole legal saga. π
π that's the whole page, bestie! the footer tea is perl v5.42.0, dated 2024-12-24, and this was Specio:...:AnyDoes(3). mwah, go slay! π«Άβ¨
π¦ 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