projects
/
gitmo/MooseX-AttributeHelpers.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
tweaking
[gitmo/MooseX-AttributeHelpers.git]
/
lib
/
MooseX
/
AttributeHelpers
/
Base.pm
diff --git
a/lib/MooseX/AttributeHelpers/Base.pm
b/lib/MooseX/AttributeHelpers/Base.pm
index
267ffbe
..
3d13d16
100644
(file)
--- a/
lib/MooseX/AttributeHelpers/Base.pm
+++ b/
lib/MooseX/AttributeHelpers/Base.pm
@@
-31,6
+31,7
@@
sub helper_type { () }
sub process_options_for_provides {
my ($self, $options) = @_;
+
if (my $type = $self->helper_type) {
(exists $options->{isa})
|| confess "You must define a type with the $type metaclass";