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=082d80781184f155a29fedacc317275ecad86e7b;hpb=f969917f5cb650391a698751da4a219bec2fcdec;p=gitmo%2FMooseX-Getopt.git diff --git a/lib/MooseX/Getopt/Meta/Attribute.pm b/lib/MooseX/Getopt/Meta/Attribute.pm index 082d807..3523f65 100644 --- a/lib/MooseX/Getopt/Meta/Attribute.pm +++ b/lib/MooseX/Getopt/Meta/Attribute.pm @@ -3,36 +3,17 @@ package MooseX::Getopt::Meta::Attribute; use Moose; use Moose::Util::TypeConstraints; -our $VERSION = '0.04'; +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'; - -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; # 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; @@ -128,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