Commits

Toby Inkster committed d9b88bf

fix "isa" for ::Processor

Comments (0)

Files changed (1)

lib/MooX/Struct.pm

 
 	has flags => (
 		is       => 'ro',
-		isa      => does('HASH'),
+		isa      => sub { die "flags must be HASH" unless does $_[0], 'HASH' },
 		default  => sub { +{} },
 	);
 	
 	has class_map => (
 		is       => 'ro',
-		isa      => does('HASH'),
+		isa      => sub { die "class_map must be HASH" unless does $_[0], 'HASH' },
 		default  => sub { +{} },
 	);