X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMooseX%2FGetopt%2FMeta%2FAttribute.pm;h=f71ea67c7b109f4e117405a374f89b04da9591f8;hb=105e05aa414caa4da9b8c7d3fec909db8caa7bd6;hp=d10332e4c35116cebfc2f907398763dd39fa230b;hpb=a0b1a204d69cac41870f7e436dfe6af8803557e6;p=gitmo%2FMooseX-Getopt.git diff --git a/lib/MooseX/Getopt/Meta/Attribute.pm b/lib/MooseX/Getopt/Meta/Attribute.pm index d10332e..f71ea67 100644 --- a/lib/MooseX/Getopt/Meta/Attribute.pm +++ b/lib/MooseX/Getopt/Meta/Attribute.pm @@ -1,40 +1,19 @@ -package ; +package MooseX::Getopt::Meta::Attribute; use Moose; use Moose::Util::TypeConstraints; -our $VERSION = '0.03'; +our $VERSION = '0.18'; 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 '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; @@ -130,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