EntityModel::Class

Define class definition
Download

EntityModel::Class Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Publisher Name:
  • Tom Molesworth
  • Publisher web site:
  • http://search.cpan.org/~team/

EntityModel::Class Tags


EntityModel::Class Description

Define class definition EntityModel::Class is a Perl module that applies a class definition to a package. Automatically includes strict, warnings, error handling and other standard features without needing to copy and paste boilerplate code.SYNOPSIS package Thing; use EntityModel::Class { _isa => , name => 'string', items => { type => 'array', subclass => 'string' } }; package main; my $thing = Thing->new(); $thing->name('A thing'); $thing->items->push('an entry'); $thing->items->push('another entry'); print "Have " . $thing->items->count . " items\n"; 1; Requirements: · Perl


EntityModel::Class Related Software