bca05f0670576cba0a92814cc5b5be3385503cd2
[catagits/Reaction.git] / lib / Reaction / UI / ViewPort / Field / Collection.pm
1 package Reaction::UI::ViewPort::Field::Collection;
2
3 use Reaction::Class;
4 use Scalar::Util 'blessed';
5 use aliased 'Reaction::UI::ViewPort::Field::Array';
6
7 class Collection is Array, which {
8
9   #XXX
10   override _build_value => sub {
11     my $collection = super();
12     return blessed($collection) ? [$collection->members] : $collection;
13   };
14
15 };
16
17 1;