Declar...ortable(3pm)
π¦ Declar...ortable(3pm) β like, the whole Exportable vibe π¦
okay bestie, welcome to the Declare::Constraints::Simple::Library::Exportable page from the User Contributed Perl Documentation era. pull up a chair, we're talking export facilities. π
β¨ NAME β¨
Declare::Constraints::Simple::Library::Exportable β Export Facilities π
π DESCRIPTION π
So this is literally where the constraint export logic of the module lives. that's the whole deal. it's giving "utility drawer but make it glam". π«Ά
πΈ METHODS πΈ
π§ import($flag, @args)
watch this:
use ExportableModule->All;
# or
use ExportableModule-Only => qw(Constraint1 ...);
# or
use ExportableModule-Library;
what it does: it exports the constraints to the calling namespace. that includes all libraries in Declare::Constraints::Simple::Library, that package itself (which hands you all the default constraints), or Declare::Constraints::Simple itself as a lil shortcut. three doors, one slay. πͺβ¨
the possible flags are:
Allβ imports all constraints registered in the class and its base classes. the greedy icon. πOnlyβ okay so check this out:
use Declare::Constraints::Simple::Library::Scalar-Only => 'HasLength';
the line above would only import the HasLength constraints from the Scalar default library. ngl though, note that you could also just have said
use Declare::Constraints::Simple-Only => 'HasLength';
because both ::Simple and ::Simple::Library work on all default libraries. same energy, less typing, we love that for you. π
Libraryβ use this one to define your own constraint library. for more info, go peek atDeclare::Constraints::Simple::Library::Base. build your own empire, bestie. π°
π _build_handle_map()
internal method to build constraint-to-class mappings. backstage crew. π
π _export_all($target, $handle_map)
internal method. exports all handles in $handle_map into the $target namespace. everything everywhere all at once. π
π _export_these($target, $handle_map, @constraints)
internal method. exports all @constraints from $handle_map into the $target namespace. curated. selective. iconic. π
β SEE ALSO β
Declare::Constraints::SimpleDeclare::Constraints::Simple::LibraryDeclare::Constraints::Simple::Library::Base
π AUTHOR π
Robert 'phaylon' Sedlacek <phaylon@dunkelheit.at> β the main character who wrote all this fr fr. π«‘
π LICENSE AND COPYRIGHT π
This module is free software, you can redistribute it and/or modify it under the same terms as perl itself. periodt. π
okay that's the whole page!! shoutout to perl v5.32.0, dated 2021-01-09, straight from the User Contributed Perl Documentation archives β mwah, take care of her, she's vintage bestie πβ¨π¦
π¦ where this page comes from
- debian bookworm: libdeclare-constraints-simple-perl 0.03-1.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libdeclare-constraints-simple-perl 0.03-1.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libdeclare-constraints-simple-perl 0.03-1.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libdeclare-constraints-simple-perl 0.03-1.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libdeclare-constraints-simple-perl 0.03-1.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libdeclare-constraints-simple-perl 0.03-1.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms