summaryrefslogblamecommitdiff
path: root/lib/MooseX/Privacy/Trait/Private.pm
blob: 8fca8b9ce258d58eb6a3ca7d2ff469fd1abe25cb (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                                                                      























                                                                    
package MooseX::Privacy::Trait::Private;

use Moose::Role;

around accessor_metaclass => sub {
    my ( $orig, $self, @rest ) = @_;

    return Moose::Meta::Class->create_anon_class(
        superclasses => [ $self->$orig(@_) ],
        roles        => ['MooseX::Privacy::Meta::Attribute::Private'],
        cache        => 1
    )->name;
};

1;

__END__

=head1 NAME

MooseX::Privacy::Trait::Private;

=head1 SYNOPSIS

=head1 METHODS

=head1 AUTHOR

franck cuny E<lt>franck@lumberjaph.netE<gt>

=head1 SEE ALSO

=head1 LICENSE

This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.

=cut