1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
Source: libobject-declare-perl
Section: perl
Priority: optional
Build-Depends: debhelper (>= 5)
Build-Depends-Indep: perl (>= 5.6.0), libsub-override-perl
Maintainer: Debian Perl Group <pkg-perl-maintainers@lists.alioth.debian.org>
Uploaders: AGOSTINI Yves <agostini@univ-metz.fr>, Jaldhar H. Vyas <jaldhar@debian.org>
Standards-Version: 3.7.3
Homepage: http://search.cpan.org/dist/Object-Declare/
Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libobject-declare-perl/
Vcs-Browser: http://svn.debian.org/wsvn/pkg-perl/trunk/libobject-declare-perl/
Package: libobject-declare-perl
Architecture: all
Depends: ${perl:Depends}, ${misc:Depends}, libsub-override-perl
Description: Declarative object constructor
This module exports one function, declare, for building named
objects with a declarative syntax, similar to how Jifty::DBI::Schema
defines its columns.
.
In list context, declare returns a list of name/object pairs in the
order of declaration (allowing duplicates), suitable for putting into a hash.
In scalar context, declare returns a hash reference.
.
Example : fonction for definning some declarative object
.
sub do_declare { declare {
column x =>
is rw,
is Very::Happy;
} };
|