logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

KiokuDB::TypeMap::Entry - Role for KiokuDB::TypeMap entries

Author

       Yuval Kogman <nothingmuch@woobling.org>

Description

       This is the role consumed by all typemap entries.

Name

       KiokuDB::TypeMap::Entry - Role for KiokuDB::TypeMap entries

Required Methods

       compile $class
           This  method  is  called  by  KiokuDB::TypeMap::Resolver  for  a  given  class,  and  should return a
           KiokuDB::TypeMap::Entry::Compiled object for collapsing and expanding the object.

           KiokuDB::TypeMap::Entry::Std provides a more concise way of defining typemap entries.

Synopsis

           package KiokuDB::TypeMap::Foo;
           use Moose;

           with qw(KiokuDB::TypeMap::Entry);

           # or just use KiokuDB::TypeMap::Entry::Std

           sub compile {
               ...
           }

Version

       version 0.57

See Also