NAME

Data::Object::Rule

ABSTRACT

Data-Object Class Requirements

SYNOPSIS

  package Persona;

  use Data::Object Rule;

  requires 'id';
  requires 'fname';
  requires 'lname';
  requires 'created';
  requires 'updated';

  around created() {
    # do something ...
    return $self->$orig;
  }

  around updated() {
    # do something ...
    return $self->$orig;
  }

  1;

DESCRIPTION

Data::Object::Rule allows you to specify rules for the consuming class.