-
package MooseX::AttributeHelpers::Collection::Bag;
use Moose;
-use Moose::Util::TypeConstraints;
-use MooseX::AttributeHelpers::Sugar;
+use MooseX::AttributeHelpers::MethodProvider::Collection::Bag;
our $VERSION = '0.01';
our $AUTHORITY = 'cpan:STEVAN';
extends 'MooseX::AttributeHelpers::Collection';
-subtype 'Bag' => as 'HashRef[Int]';
-
-define_attribute_helper (
+__PACKAGE__->sugar(
default_options => { default => sub { {} } },
- helper_type => 'Bag',
- method_provider => 'MooseX::AttributeHelpers::MethodProvider::Bag',
+ method_provider => 'Collection::Bag',
shortcut => 'Collection::Bag',
);
no Moose;
-no Moose::Util::TypeConstraints;
-no MooseX::AttributeHelpers::Sugar;
1;