| 1 | package Catalyst::Helper::Model::Gedcom; | ||||||||||
| 2 | |||||||||||
| 3 | 2 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 2 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 2 | our $VERSION = '0.05'; | |||||||||
| 7 | |||||||||||
| 8 | =head1 NAME | ||||||||||
| 9 | |||||||||||
| 10 | Catalyst::Helper::Model::Gedcom - Helper for Gedcom models | ||||||||||
| 11 | |||||||||||
| 12 | =head1 SYNOPSIS | ||||||||||
| 13 | |||||||||||
| 14 | script/myapp_create.pl model Gedcom Gedcom myfamily.ged | ||||||||||
| 15 | |||||||||||
| 16 | =head1 DESCRIPTION | ||||||||||
| 17 | |||||||||||
| 18 | Helper for the C<Catalyst> Gedcom model. | ||||||||||
| 19 | |||||||||||
| 20 | =head1 METHODS | ||||||||||
| 21 | |||||||||||
| 22 | =head2 mk_compclass | ||||||||||
| 23 | |||||||||||
| 24 | Makes the Gedcom model class. | ||||||||||
| 25 | |||||||||||
| 26 | =cut | ||||||||||
| 27 | |||||||||||
| 28 | 0 | ▶ | sub mk_compclass { | ||||||||
|
Subroutine
mk_compclass: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||
| 29 | 0 | my ( $self, $helper, $filename ) = @_; | |||||||||
| 30 | |||||||||||
| 31 | 0 | ▶ | die( 'No filename specified' ) unless $filename; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 32 | |||||||||||
| 33 | 0 | $helper->{ filename } = $filename; | |||||||||
| 34 | 0 | $helper->render_file( 'modelclass', $helper->{ file } ); | |||||||||
| 35 | |||||||||||
| 36 | 0 | return 1; | |||||||||
| 37 | } | ||||||||||
| 38 | |||||||||||
| 39 | =head2 mk_comptest | ||||||||||
| 40 | |||||||||||
| 41 | Makes tests for the Gedcom model. | ||||||||||
| 42 | |||||||||||
| 43 | =cut | ||||||||||
| 44 | |||||||||||
| 45 | 0 | ▶ | sub mk_comptest { | ||||||||
|
Subroutine
mk_comptest: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 46 | 0 | my ( $self, $helper ) = @_; | |||||||||
| 47 | |||||||||||
| 48 | 0 | $helper->render_file( 'modeltest', $helper->{ test } ); | |||||||||
| 49 | } | ||||||||||
| 50 | |||||||||||
| 51 | =head1 SEE ALSO | ||||||||||
| 52 | |||||||||||
| 53 | L<Catalyst::Manual>, L<Catalyst::Test>, L<Catalyst::Helper> | ||||||||||
| 54 | |||||||||||
| 55 | =head1 AUTHOR | ||||||||||
| 56 | |||||||||||
| 57 | Brian Cassidy E<lt>bricas@cpan.orgE<gt> | ||||||||||
| 58 | |||||||||||
| 59 | =head1 COPYRIGHT AND LICENSE | ||||||||||
| 60 | |||||||||||
| 61 | Copyright 2005-2009 by Brian Cassidy | ||||||||||
| 62 | |||||||||||
| 63 | This library is free software; you can redistribute it and/or modify | ||||||||||
| 64 | it under the same terms as Perl itself. | ||||||||||
| 65 | |||||||||||
| 66 | =cut | ||||||||||
| 67 | |||||||||||
| 68 | 2 | 1; | |||||||||
| 69 | |||||||||||
| 70 | __DATA__ | ||||||||||