t/016_always_strict_warnings.t
t/017_wrapped_method_context_propagation.t
t/018_import_unimport.t
+t/019_method_keyword.t
t/020_foreign_inheritence.t
t/021_moose_w_metaclass.t
t/022_moose_respects_base.t
t/046_roles_and_required_method_edge_cases.t
t/047_role_conflict_edge_cases.t
t/048_more_role_edge_cases.t
+t/049_run_time_role_composition.t
t/050_util_type_constraints.t
t/051_util_type_constraints_export.t
t/052_util_std_type_constraints.t
## methods
+# FIXME:
+# Yes, this is a really really UGLY hack
+# but it works, and until I can figure
+# out a better way, this is gonna be it.
+
sub get_method { (shift)->Moose::Meta::Class::get_method(@_) }
sub find_method_by_name { (shift)->Moose::Meta::Class::find_method_by_name(@_) }
sub has_method { (shift)->Moose::Meta::Class::has_method(@_) }
# anon classes will only be used internally
# or by people who know what they are doing
$other->Moose::Meta::Class::remove_method($method_name)
- if $other->name =~ /__ANON__/;
+ if $other->name =~ /__COMPOSITE_ROLE_SANDBOX__/;
}
else {
next;
sub combine {
my ($class, @roles) = @_;
- my $pkg_name = __PACKAGE__ . "::__ANON__::" . $anon_counter++;
+ my $pkg_name = __PACKAGE__ . "::__COMPOSITE_ROLE_SANDBOX__::" . $anon_counter++;
eval "package " . $pkg_name . "; our \$VERSION = '0.00';";
die $@ if $@;