| 1 | package Acme::Resume; | ||||||||||||
| 2 | |||||||||||||
| 3 | 2 | our $VERSION = '0.0102'; # VERSION | |||||||||||
| 4 | # ABSTRACT: Write a human-readable resume in Perl | ||||||||||||
| 5 | |||||||||||||
| 6 | 2 | ▶ | use strict; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 7 | 2 | ▶ | use warnings; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 8 | |||||||||||||
| 9 | 2 | ▶ | use base 'MoopsX::UsingMoose'; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 10 | 2 | ▶ | use Acme::Resume::Moose(); | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 11 | 2 | ▶ | use Time::Moment; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 12 | 2 | ▶ | use syntax(); | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 13 | |||||||||||||
| 14 | sub import { | ||||||||||||
| 15 | 2 | ▶ | my $class = shift; | ||||||||||
|
Subroutine
import: called CC=3 SCAR=11.2
| |||||||||||||
| 16 | 2 | my %opts = @_; | |||||||||||
| 17 | |||||||||||||
| 18 | 2 | ▶ | push @{ $opts{'imports'} ||= [] } => ( | ||||||||||
|
Condition50%1/2
$opts{"imports"} ||= []
MC/DC0%0/1
$opts{"imports"} ||= []
$opts{"imports"}
Truth table50%1/2
A
A= $opts{"imports"}
| |||||||||||||
| 19 | 'syntax' => ['qs'], | ||||||||||||
| 20 | 'Acme::Resume::Moose' => [], | ||||||||||||
| 21 | ); | ||||||||||||
| 22 | |||||||||||||
| 23 | 2 | ▶ | push @{ $opts{'traits'} ||= [] } => ( | ||||||||||
|
Condition50%1/2
$opts{"traits"} ||= []
MC/DC0%0/1
$opts{"traits"} ||= []
$opts{"traits"}
Truth table50%1/2
A
A= $opts{"traits"}
| |||||||||||||
| 24 | 'Acme::Resume::MoopsParserTrait', | ||||||||||||
| 25 | ); | ||||||||||||
| 26 | |||||||||||||
| 27 | 2 | $class->SUPER::import(%opts); | |||||||||||
| 28 | } | ||||||||||||
| 29 | |||||||||||||
| 30 | 2 | 1; | |||||||||||
| 31 | |||||||||||||
| 32 | __END__ | ||||||||||||
| 33 | |||||||||||||
| 34 | =pod | ||||||||||||
| 35 | |||||||||||||
| 36 | =encoding UTF-8 | ||||||||||||
| 37 | |||||||||||||
| 38 | =head1 NAME | ||||||||||||
| 39 | |||||||||||||
| 40 | Acme::Resume - Write a human-readable resume in Perl | ||||||||||||
| 41 | |||||||||||||
| 42 | |||||||||||||
| 43 | |||||||||||||
| 44 | =begin HTML | ||||||||||||
| 45 | |||||||||||||
| 46 | <p><img src="https://img.shields.io/badge/perl-5.14+-brightgreen.svg" alt="Requires Perl 5.14+" /> <a href="https://travis-ci.org/Csson/p5-Acme-Resume"><img src="https://api.travis-ci.org/Csson/p5-Acme-Resume.svg?branch=master" alt="Travis status" /></a> <img src="https://img.shields.io/badge/coverage-86.4%-orange.svg" alt="coverage 86.4%" /></p> | ||||||||||||
| 47 | |||||||||||||
| 48 | =end HTML | ||||||||||||
| 49 | |||||||||||||
| 50 | |||||||||||||
| 51 | =begin markdown | ||||||||||||
| 52 | |||||||||||||
| 53 |  [](https://travis-ci.org/Csson/p5-Acme-Resume)  | ||||||||||||
| 54 | |||||||||||||
| 55 | =end markdown | ||||||||||||
| 56 | |||||||||||||
| 57 | =head1 VERSION | ||||||||||||
| 58 | |||||||||||||
| 59 | Version 0.0102, released 2016-01-27. | ||||||||||||
| 60 | |||||||||||||
| 61 | =head1 SYNOPSIS | ||||||||||||
| 62 | |||||||||||||
| 63 | use Acme::Resume; | ||||||||||||
| 64 | |||||||||||||
| 65 | resume ExAmple { | ||||||||||||
| 66 | |||||||||||||
| 67 | name 'Ex Ample'; | ||||||||||||
| 68 | |||||||||||||
| 69 | email 'ex@example.com'; | ||||||||||||
| 70 | |||||||||||||
| 71 | address ['Suburbia lane 1200', 'Townsville', 'USA']; | ||||||||||||
| 72 | |||||||||||||
| 73 | phone '+1 (555) 123 4321'; | ||||||||||||
| 74 | |||||||||||||
| 75 | education { ... } | ||||||||||||
| 76 | |||||||||||||
| 77 | education { ... } | ||||||||||||
| 78 | |||||||||||||
| 79 | job { ... } | ||||||||||||
| 80 | |||||||||||||
| 81 | job { ... } | ||||||||||||
| 82 | } | ||||||||||||
| 83 | |||||||||||||
| 84 | 1; | ||||||||||||
| 85 | |||||||||||||
| 86 | =head1 DESCRIPTION | ||||||||||||
| 87 | |||||||||||||
| 88 | Acme::Resume is a framework for writing human-readable, computer-executable, object-oriented résumés in Perl. | ||||||||||||
| 89 | |||||||||||||
| 90 | C<Acme::Resume> is a wrapper around L<Moops> that imports L<Acme::Resume::Moose>, which adds all the methods. It also adds | ||||||||||||
| 91 | the L<Acme::Resume::MoopsParserTrait> which includes the C<resume> keyword (just an alias for a standard Moops C<class>) and | ||||||||||||
| 92 | adds special handling of the package name: | ||||||||||||
| 93 | |||||||||||||
| 94 | If the package doesn't contain C<::>, as in the synopsis, the package name will have C<Acme::Resume::For::> automatically prepended. | ||||||||||||
| 95 | |||||||||||||
| 96 | =head1 METHODS | ||||||||||||
| 97 | |||||||||||||
| 98 | =head2 name | ||||||||||||
| 99 | |||||||||||||
| 100 | Your full name. | ||||||||||||
| 101 | |||||||||||||
| 102 | =head2 email | ||||||||||||
| 103 | |||||||||||||
| 104 | Your email address. | ||||||||||||
| 105 | |||||||||||||
| 106 | =head2 phone | ||||||||||||
| 107 | |||||||||||||
| 108 | Your phone number. | ||||||||||||
| 109 | |||||||||||||
| 110 | =head2 address | ||||||||||||
| 111 | |||||||||||||
| 112 | An array reference of address parts. | ||||||||||||
| 113 | |||||||||||||
| 114 | =head2 education | ||||||||||||
| 115 | |||||||||||||
| 116 | Can be used multiple times. Adds an L<Acme::Resume::Types::Education> to the list of educations. | ||||||||||||
| 117 | |||||||||||||
| 118 | =head2 job | ||||||||||||
| 119 | |||||||||||||
| 120 | Can be used multiple times. Adds a L<Acme::Resume::Types::Job> to the list of jobs. | ||||||||||||
| 121 | |||||||||||||
| 122 | =head1 USAGE | ||||||||||||
| 123 | |||||||||||||
| 124 | One way to read a résumé (apart from reading the source) is with one-liners: | ||||||||||||
| 125 | |||||||||||||
| 126 | $ perl -MAcme::Resume::For::ExAmple -E 'say Acme::Resume::For::ExAmple->new->get_job(-1)->started->year' | ||||||||||||
| 127 | |||||||||||||
| 128 | The L<Acme::Resume::Output::ToPlain> role (used by default) adds a C<to_plain> method: | ||||||||||||
| 129 | |||||||||||||
| 130 | $ perl -MAcme::Resume::For::Tester -E 'say Acme::Resume::For::Tester->new->to_plain' | ||||||||||||
| 131 | |||||||||||||
| 132 | =head1 TODO | ||||||||||||
| 133 | |||||||||||||
| 134 | More documentation and a complete example. | ||||||||||||
| 135 | |||||||||||||
| 136 | =head1 SOURCE | ||||||||||||
| 137 | |||||||||||||
| 138 | L<https://github.com/Csson/p5-Acme-Resume> | ||||||||||||
| 139 | |||||||||||||
| 140 | =head1 HOMEPAGE | ||||||||||||
| 141 | |||||||||||||
| 142 | L<https://metacpan.org/release/Acme-Resume> | ||||||||||||
| 143 | |||||||||||||
| 144 | =head1 AUTHOR | ||||||||||||
| 145 | |||||||||||||
| 146 | Erik Carlsson <info@code301.com> | ||||||||||||
| 147 | |||||||||||||
| 148 | =head1 COPYRIGHT AND LICENSE | ||||||||||||
| 149 | |||||||||||||
| 150 | This software is copyright (c) 2016 by Erik Carlsson. | ||||||||||||
| 151 | |||||||||||||
| 152 | This is free software; you can redistribute it and/or modify it under | ||||||||||||
| 153 | the same terms as the Perl 5 programming language system itself. | ||||||||||||
| 154 | |||||||||||||
| 155 | =cut | ||||||||||||