X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMoo%2F_Utils.pm;h=6b1a5b3ff25f100f91e3b7730d7938d75d473da3;hb=3c7393974323115c96a461ae6c3bfdecafc2eb0f;hp=1e53b0ec08f284b7542290b10d830baedbaf3e22;hpb=3c55a7add803261dff0455caa04fc22d18817f18;p=gitmo%2FRole-Tiny.git diff --git a/lib/Moo/_Utils.pm b/lib/Moo/_Utils.pm index 1e53b0e..6b1a5b3 100644 --- a/lib/Moo/_Utils.pm +++ b/lib/Moo/_Utils.pm @@ -12,8 +12,12 @@ BEGIN { use strictures 1; use base qw(Exporter); +use Moo::_mro; -our @EXPORT = qw(_getglob _install_modifier _load_module _maybe_load_module); +our @EXPORT = qw( + _getglob _install_modifier _load_module _maybe_load_module + _get_linear_isa +); sub _install_modifier { my ($into, $type, $name, $code) = @_; @@ -54,4 +58,11 @@ sub _maybe_load_module { return $MAYBE_LOADED{$_[0]}; } +sub _get_linear_isa { + return mro::get_linear_isa($_[0]); +} + +our $_in_global_destruction = 0; +END { $_in_global_destruction = 1 } + 1;