| 1 |
Source: libobject-declare-perl |
| 2 |
Maintainer: Debian Perl Group <[email protected]> |
| 3 |
Uploaders: gregor herrmann <[email protected]> |
| 4 |
Section: perl |
| 5 |
Testsuite: autopkgtest-pkg-perl |
| 6 |
Priority: optional |
| 7 |
Build-Depends: debhelper-compat (= 13), |
| 8 |
libmodule-build-perl |
| 9 |
Build-Depends-Indep: libsub-override-perl <!nocheck>, |
| 10 |
perl |
| 11 |
Standards-Version: 4.6.1 |
| 12 |
Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libobject-declare-perl |
| 13 |
Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libobject-declare-perl.git |
| 14 |
Homepage: https://metacpan.org/release/Object-Declare |
| 15 |
Rules-Requires-Root: no |
| 16 |
|
| 17 |
Package: libobject-declare-perl |
| 18 |
Architecture: all |
| 19 |
Depends: ${misc:Depends}, |
| 20 |
${perl:Depends}, |
| 21 |
libsub-override-perl |
| 22 |
Multi-Arch: foreign |
| 23 |
Description: declarative object constructor |
| 24 |
Object::Declare exports one function, declare, for building named |
| 25 |
objects with a declarative syntax, similar to how Jifty::DBI::Schema |
| 26 |
defines its columns. |
| 27 |
. |
| 28 |
In list context, declare returns a list of name/object pairs in the |
| 29 |
order of declaration (allowing duplicates), suitable for putting into a hash. |
| 30 |
In scalar context, declare returns a hash reference. |
| 31 |
. |
| 32 |
Example: function for defining some declarative object |
| 33 |
. |
| 34 |
sub do_declare { declare { |
| 35 |
column x => |
| 36 |
is rw, |
| 37 |
is Very::Happy; |
| 38 |
} }; |