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


KiokuDB documentation Contained in the KiokuDB distribution.

Index


Code Index:

NAME

Top

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

SYNOPSIS

Top

    # in your class:

    package Foo;
    use Moose;

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

DESCRIPTION

Top

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.


KiokuDB documentation Contained in the KiokuDB distribution.

#!/usr/bin/perl

package KiokuDB::Meta::Attribute::DoNotSerialize;
use Moose::Role;

use Moose::Util qw(does_role);

use namespace::clean -except => 'meta';

sub Moose::Meta::Attribute::Custom::Trait::KiokuDB::DoNotSerialize::register_implementation { __PACKAGE__ }

__PACKAGE__

__END__