X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMooseX%2FGetopt%2FMeta%2FAttribute.pm;h=3523f65c76808bd2a210adfd13bb0d3e5583104d;hb=091954ece6d3e231cfa0529d9a8b943282b0fe45;hp=5f29df1f8add9d70a4f56a14c8d13dda0c809bd1;hpb=1a8b4ed19c6096c389d094504e81b524d7af7120;p=gitmo%2FMooseX-Getopt.git diff --git a/lib/MooseX/Getopt/Meta/Attribute.pm b/lib/MooseX/Getopt/Meta/Attribute.pm index 5f29df1..3523f65 100644 --- a/lib/MooseX/Getopt/Meta/Attribute.pm +++ b/lib/MooseX/Getopt/Meta/Attribute.pm @@ -3,37 +3,17 @@ package MooseX::Getopt::Meta::Attribute; use Moose; use Moose::Util::TypeConstraints; -our $VERSION = '0.02'; +our $VERSION = '0.17'; 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' - => where { 1 }; -coerce '_MooseX_Getopt_CmdAliases' - => from 'Value' - => via { [$_] }; - -has 'cmd_aliases' => ( - is => 'rw', - isa => '_MooseX_Getopt_CmdAliases', - predicate => 'has_cmd_aliases', - coerce => 1, -); + with 'MooseX::Getopt::Meta::Attribute::Trait'; no Moose; # register this as a metaclass alias ... -package Moose::Meta::Attribute::Custom::Getopt; +package # stop confusing PAUSE + Moose::Meta::Attribute::Custom::Getopt; sub register_implementation { 'MooseX::Getopt::Meta::Attribute' } 1; @@ -125,9 +105,11 @@ to cpan-RT. Stevan Little Estevan@iinteractive.comE +Brandon L. Black, Eblblack@gmail.comE + =head1 COPYRIGHT AND LICENSE -Copyright 2007 by Infinity Interactive, Inc. +Copyright 2007-2008 by Infinity Interactive, Inc. L