1CPAN::Meta::Feature(3)User Contributed Perl DocumentationCPAN::Meta::Feature(3)
2
3
4
6 CPAN::Meta::Feature - an optional feature provided by a CPAN
7 distribution
8
10 version 2.102400
11
13 A CPAN::Meta::Feature object describes an optional feature offered by a
14 CPAN distribution and specified in the distribution's META.json (or
15 META.yml) file.
16
17 For the most part, this class will only be used when operating on the
18 result of the "feature" or "features" methods on a CPAN::Meta object.
19
21 new
22 my $feature = CPAN::Meta::Feature->new( $identifier => \%spec );
23
24 This returns a new Feature object. The %spec argument to the
25 constructor should be the same as the value of the "optional_feature"
26 entry in the distmeta. It must contain entries for "description" and
27 "prereqs".
28
29 identifier
30 This method returns the feature's identifier.
31
32 description
33 This method returns the feature's long description.
34
35 prereqs
36 This method returns the feature's prerequisites as a
37 CPAN::Meta::Prereqs object.
38
40 Please report any bugs or feature using the CPAN Request Tracker. Bugs
41 can be submitted through the web interface at
42 http://rt.cpan.org/Dist/Display.html?Queue=CPAN-Meta
43 <http://rt.cpan.org/Dist/Display.html?Queue=CPAN-Meta>
44
45 When submitting a bug or request, please include a test-file or a patch
46 to an existing test-file that illustrates the bug or desired feature.
47
49 · David Golden <dagolden@cpan.org>
50
51 · Ricardo Signes <rjbs@cpan.org>
52
54 This software is copyright (c) 2010 by David Golden and Ricardo Signes.
55
56 This is free software; you can redistribute it and/or modify it under
57 the same terms as the Perl 5 programming language system itself.
58
59
60
61perl v5.12.1 2010-08-28 CPAN::Meta::Feature(3)