Object::Relation::Meta::TypeObject::Relation::Meta::Type is an Object::Relation Data type validation and accessor building. | |
Download |
Object::Relation::Meta::Type Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Kineticode, Inc.
- Publisher web site:
- http://search.cpan.org/~dwheeler/Object-Relation-v0.1.0/lib/Object/Relation/Setup/DB/SQLite.pm
Object::Relation::Meta::Type Tags
Object::Relation::Meta::Type Description
Object::Relation::Meta::Type is an Object::Relation Data type validation and accessor building. Object::Relation::Meta::Type is an Object::Relation Data type validation and accessor building.Synopsis Object::Relation::Meta::Type->add( key => "state", name => "State", builder => 'Object::Relation::Meta::AccessorBuilder', raw => sub { ref $_ ? shift->value : shift }, store_raw => sub { shift->store_value }, check => sub { UNIVERSAL::isa($_, 'Object::Relation::DataType::State') or throw_invalid(" is not a valid object', $_, 'Object::Relation::DataType::State']); throw_invalid() if $_ == Object::Relation::DataType::State->PERMANENT; } );This class subclasses Class::Meta::Type to provide additional attributes. These attributes can optionally be set via the call to new(), and may be fetched via their accessors. Requirements: · Perl
Object::Relation::Meta::Type Related Software