1Declare::Constraints::SUismeprlDeCe:oc:nlLtairrbierb:au:rtCyeo:dn:sEPtxerpraolirntDtaosbc:lu:emS(ei3nm)tpaltei:o:nLibrary::Exportable(3)
2
3
4

NAME

6       Declare::Constraints::Simple::Library::Exportable - Export Facilities
7

DESCRIPTION

9       This contains the constraint export logic of the module.
10

METHODS

12   import($flag, @args)
13         use ExportableModule->All;
14
15         # or
16         use ExportableModule-Only => qw(Constraint1 ...);
17
18         # or
19         use ExportableModule-Library;
20
21       Exports the constraints to the calling namespace. This includes all
22       libraries in Declare::Constraints::Simple::Library, that package itself
23       (providing all default constraints) or Declare::Constraints::Simple
24       itself as a shortcut.
25
26       Possible flags are
27
28       All Imports all constraints registered in the class and its base
29           classes.
30
31       Only
32             use Declare::Constraints::Simple::Library::Scalar-Only => 'HasLength';
33
34           The above line would only import the "HasLength" constraints from
35           the "Scalar" default library. Note however, that you could also
36           just have said
37
38             use Declare::Constraints::Simple-Only => 'HasLength';
39
40           as both "::Simple" and "::Simple::Library" work on all default
41           libraries.
42
43       Library
44           You can use this to define your own constraint library. For more
45           information, see Declare::Constraints::Simple::Library::Base.
46
47   _build_handle_map()
48       Internal method to build constraint-to-class mappings.
49
50   _export_all($target, $handle_map)
51       Internal method. Exports all handles in $handle_map into the $target
52       namespace.
53
54   _export_these($target, $handle_map, @constraints)
55       Internal method. Exports all @constraints from $handle_map into the
56       $target namespace.
57

SEE ALSO

59       Declare::Constraints::Simple, Declare::Constraints::Simple::Library,
60       Declare::Constraints::Simple::Library::Base
61

AUTHOR

63       Robert 'phaylon' Sedlacek "<phaylon@dunkelheit.at>"
64
66       This module is free software, you can redistribute it and/or modify it
67       under the same terms as perl itself.
68
69
70
71perl v5.30.1              Declare:2:0C2o0n-s0t1r-a2i9nts::Simple::Library::Exportable(3)
Impressum