X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMooseX%2FGetopt%2FMeta%2FAttribute.pm;fp=lib%2FMooseX%2FGetopt%2FMeta%2FAttribute.pm;h=09f4e7aeb6d1e5dd17836021ac07135ba0352899;hb=adbe3e57810b57a425b78c327cc08ec3ab602a97;hp=22e41915f41b7f250ea72e2e26257b90f82e9a05;hpb=41d0ab091f0df3e2c1eae2401545c07c3798f76f;p=gitmo%2FMooseX-Getopt.git diff --git a/lib/MooseX/Getopt/Meta/Attribute.pm b/lib/MooseX/Getopt/Meta/Attribute.pm index 22e4191..09f4e7a 100644 --- a/lib/MooseX/Getopt/Meta/Attribute.pm +++ b/lib/MooseX/Getopt/Meta/Attribute.pm @@ -3,31 +3,11 @@ package MooseX::Getopt::Meta::Attribute; use Moose; use Moose::Util::TypeConstraints; -our $VERSION = '0.04'; +our $VERSION = '0.05'; our $AUTHORITY = 'cpan:STEVAN'; extends 'Moose::Meta::Attribute'; # << Moose extending Moose :) - -has 'cmd_flag' => ( - is => 'rw', - isa => 'Str', - predicate => 'has_cmd_flag', -); - -# This subtype is to support scalar -> arrayref coercion -# without polluting the built-in types -subtype '_MooseX_Getopt_CmdAliases' => as 'ArrayRef'; - -coerce '_MooseX_Getopt_CmdAliases' - => from 'Str' - => via { [$_] }; - -has 'cmd_aliases' => ( - is => 'rw', - isa => '_MooseX_Getopt_CmdAliases', - predicate => 'has_cmd_aliases', - coerce => 1, -); + with 'MooseX::Getopt::Meta::Attribute::Trait'; no Moose; @@ -129,7 +109,7 @@ Brandon L. Black, Eblblack@gmail.comE =head1 COPYRIGHT AND LICENSE -Copyright 2007 by Infinity Interactive, Inc. +Copyright 2007-2008 by Infinity Interactive, Inc. L