יובל קוג'מן (Yuval Kogman) > KiokuDB-0.51 > KiokuDB::Meta::Attribute::DoNotSerialize

Download:
KiokuDB-0.51.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  3
Open  2
View/Report Bugs
Source   Latest Release: KiokuDB-0.57

NAME ^

KiokuDB::Meta::Attribute::DoNotSerialize - Trait for skipped attributes

SYNOPSIS ^

    # in your class:

    package Foo;
    use Moose;

    has bar => (
        traits => [qw(KiokuDB::DoNotSerialize)],
        isa => "Bar",
        is  => "ro",
        lazy_build => 1,
    );

DESCRIPTION ^

This Moose::Meta::Attribute trait provides tells KiokuDB to skip an attribute when serializing.

KiokuDB also recognizes MooseX::Meta::Attribute::Trait::DoNotSerialize, but if you don't want to install MooseX::Storage you can use this instead.

syntax highlighting: