| 1 | package YATG::SharedStorage; | ||
| 2 | { | ||
| 3 | $YATG::SharedStorage::VERSION = '5.140510'; | ||
| 4 | } | ||
| 5 | |||
| 6 | use strict; | ||
| 7 | use warnings FATAL => 'all'; | ||
| 8 | |||
| 9 | use base 'Class::Data::Inheritable'; | ||
| 10 | |||
| 11 | sub factory { | ||
| 12 | my $class = shift; | ||
| 13 | my @accessors = @_; | ||
| 14 | return unless scalar @accessors; | ||
| 15 | |||
| 16 | map {$class->mk_classdata($_)} @accessors; | ||
| 17 | } | ||
| 18 | |||
| 19 | 1; |