From: Graham Knop Date: Thu, 11 Jul 2013 09:36:12 +0000 (-0400) Subject: explicitly mark roles with is_role for parity with Moo X-Git-Tag: v1.003000~21 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8e8b04ebe0d6a66fcf6dbeb2b770618e3712e2e4;p=gitmo%2FRole-Tiny.git explicitly mark roles with is_role for parity with Moo --- diff --git a/lib/Role/Tiny.pm b/lib/Role/Tiny.pm index 44659cf..8cf0da5 100644 --- a/lib/Role/Tiny.pm +++ b/lib/Role/Tiny.pm @@ -44,6 +44,7 @@ sub import { strict->import; warnings->import(FATAL => 'all'); return if $INFO{$target}; # already exported into this package + $INFO{$target}{is_role} = 1; # get symbol table reference my $stash = _getstash($target); # install before/after/around subs