Version 0.27.
[gitmo/MooseX-Getopt.git] / lib / MooseX / Getopt / Meta / Attribute / NoGetopt.pm
CommitLineData
a01f08fb 1
0f8232b6 2package MooseX::Getopt::Meta::Attribute::NoGetopt;
a01f08fb 3use Moose;
a01f08fb 4
04dc0852 5our $VERSION = '0.27';
a01f08fb 6our $AUTHORITY = 'cpan:STEVAN';
7
8extends 'Moose::Meta::Attribute'; # << Moose extending Moose :)
adbe3e57 9 with 'MooseX::Getopt::Meta::Attribute::Trait::NoGetopt';
a01f08fb 10
11no Moose;
12
13# register this as a metaclass alias ...
6ac028c4 14package # stop confusing PAUSE
15 Moose::Meta::Attribute::Custom::NoGetopt;
0f8232b6 16sub register_implementation { 'MooseX::Getopt::Meta::Attribute::NoGetopt' }
a01f08fb 17
f969917f 181;
19
20__END__
21
22=pod
23
24=head1 NAME
25
6ac028c4 26MooseX::Getopt::Meta::Attribute::NoGetopt - Optional meta attribute for ignoring params
f969917f 27
28=head1 SYNOPSIS
29
30 package App;
31 use Moose;
32
33 with 'MooseX::Getopt';
34
35 has 'data' => (
6ac028c4 36 metaclass => 'NoGetopt', # do not attempt to capture this param
f969917f 37 is => 'ro',
38 isa => 'Str',
39 default => 'file.dat',
40 );
41
42=head1 DESCRIPTION
43
44This is a custom attribute metaclass which can be used to specify
45that a specific attribute should B<not> be processed by
6ac028c4 46C<MooseX::Getopt>. All you need to do is specify the C<NoGetopt>
f969917f 47metaclass.
48
49 has 'foo' => (metaclass => 'NoGetopt', ... );
50
51=head1 METHODS
52
53=over 4
54
55=item B<meta>
56
57=back
58
59=head1 BUGS
60
61All complex software has bugs lurking in it, and this module is no
62exception. If you find a bug please either email me, or add the bug
63to cpan-RT.
64
65=head1 AUTHOR
66
67Stevan Little E<lt>stevan@iinteractive.comE<gt>
68
69Chris Prather C<< <perigrin@cpan.org> >>
70
71=head1 COPYRIGHT AND LICENSE
72
adbe3e57 73Copyright 2007-2008 by Infinity Interactive, Inc.
f969917f 74
75L<http://www.iinteractive.com>
76
77This library is free software; you can redistribute it and/or modify
78it under the same terms as Perl itself.
79
80=cut