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

SEE ALSO

63       Declare::Constraints::Simple, Declare::Constraints::Simple::Library,
64       Declare::Constraints::Simple::Library::Base
65

AUTHOR

67       Robert 'phaylon' Sedlacek "<phaylon@dunkelheit.at>"
68
70       This module is free software, you can redistribute it and/or modify it
71       under the same terms as perl itself.
72
73
74
75perl v5.8.8               Declare:2:0C0o6n-s0t9r-a1i1nts::Simple::Library::Exportable(3)
Impressum