NAME

Dist::Zilla::Stash::Contributors::Contributor - a Contributors stash element

VERSION

version 0.1.1

SYNOPSIS

if( my $contrib_stash = $self->zilla->stash_named('%Contributors') ) {
    my @collaborators = sort { $a->email cmp $b->email }
        $contrib_stash->all_contributors;

    $self->log( "contributor: " . $_->stringify ) for @collaborators;
}

DESCRIPTION

Collaborator objects used in the Dist::Zilla::Stash::Contributors stash.

METHODS

new( name => $name, email => $address )

Creates a new Dist::Zilla::Stash::Contributors::Contributor object.

name()

Returns the name of the contributor.

email()

Returns the email address of the contributor.

stringify()

Returns the canonical string for the collaborator, of the form "Full Name <email@address.org>".

The object will automatically call this function is used as a string.

say $_ for $stash->all_contributors;

AUTHOR

Yanick Champoux <yanick@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2019, 2013 by Yanick Champoux.

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