++ed by:
JRMASH DAGOLDEN

2 PAUSE user(s)

Kent Fredric

NAME

Dist::Zilla::MetaProvides::ProvideRecord - Data Management Record for MetaProvider::Provides Based Class

VERSION

version 2.001002

QUICK REFERENCE

  ->new(options={})
    version => ^attr
    module  => ^attr
    file    => ^attr
    parent  => ^attr

  ->version                         # ModVersion
  ->module                          # Str
  ->file                            # Str
  ->parent                          # ProviderObject
  ->zilla                           # DZil
                                    # - via parent
  ->_resolve_version($pkgversion)   # ( 'version', $resolved )
                                    # - via parent
  ->copy_into( $hash )

PUBLIC METHODS

copy_into ( \%provides_list )

Populate the referenced %provides_list with data from this Provide Record object.

This is called by the Dist::Zilla::Role::MetaProvider::Provider Role.

This is very convenient if you have an array full of these objects, for you can just do

    my %discovered;
    for ( @array ) {
       $_->copy_into( \%discovered );
    }

and %discovered will be populated with relevant data.

ATTRIBUTES / PARAMETERS

version

See "ModVersion" in Dist::Zilla::MetaProvides::Types

module

The String Name of a fully qualified module to be reported as included in the distribution.

file

The String Name of the file as to be reported in the distribution.

parent

A "ProviderObject" in Dist::Zilla::MetaProvides::Types, mostly to get Zilla information and accessors from Dist::Zilla::Role::MetaProvider::Provider

AUTHOR

Kent Fredric <kentnl@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2014 by Kent Fredric <kentfredric@gmail.com>.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.