NAME

KiokuX::Model::Role::Annotations::Annotation - a role for annotation objects

SYNOPSIS

package MyAnnotation;
use Moose;

with qw(KiokuX::Model::Role::Annotations::Annotation);



# to create an annotation:
MyAnnotation->new( subject => $object );

DESCRIPTION

This role implements the abstract KiokuX::Model::Role::Annotations::Annotation::API role (which requires just a subject method to return the key object), using an attribute.

ATTRIBUTES

subject

A string or an object.

Required.