Debian logoDebian Screenshots >

libobject-declare-perl

declarative object constructor

Description

Object::Declare 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: function for defining some declarative object

 sub do_declare { declare {
     column x =>
         is rw,
         is Very::Happy;
     } };

Upload more screenshots

Please help extend the collection of screenshots. Just make a screenshot and upload it here. You don't need to register or anything.


Homepage

https://metacpan.org/release/Object-Declare


Statistics

212 other people were interested in this package here. The newest known version of this software is 0.23-1 (Information last updated about 23 hours ago.)