יובל קוג'מן (Yuval Kogman) > KiokuX-Model-Role-Annotations > KiokuX::Model::Role::Annotations::Annotation

Download:
KiokuX-Model-Role-Annotations-0.01.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

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.

syntax highlighting: