Introduce TypeConstraint::Role, and add find_or_create_{isa,does}_type_constraint...
authorYuval Kogman <nothingmuch@woobling.org>
Sun, 13 Apr 2008 16:22:10 +0000 (16:22 +0000)
committerYuval Kogman <nothingmuch@woobling.org>
Sun, 13 Apr 2008 16:22:10 +0000 (16:22 +0000)
commit620db0454d31341c981eb9061132d4f3a08a7310
tree06669cd3a6e7a8ac9e21627c99c97d775fb001f3
parent18c2ec0e78877a01cbaf330c44a5817fd790dc7d
Introduce TypeConstraint::Role, and add find_or_create_{isa,does}_type_constraint to Moose::Util::TypeConstraints, utilizing these helpers in Moose::Meta::Attribute
lib/Moose.pm
lib/Moose/Meta/Attribute.pm
lib/Moose/Meta/Role/Application/ToClass.pm
lib/Moose/Meta/TypeCoercion.pm
lib/Moose/Meta/TypeConstraint/Class.pm
lib/Moose/Meta/TypeConstraint/Role.pm [new file with mode: 0644]
lib/Moose/Util/TypeConstraints.pm
t/040_type_constraints/018_custom_parameterized_types.t
t/040_type_constraints/019_coerced_parameterized_types.t
t/040_type_constraints/021_maybe_type_constraint.t
t/040_type_constraints/024_role_type_constraint.t [new file with mode: 0644]