| 1 | # POD documentation - main docs before the code | ||
| 2 | |||
| 3 | =head1 NAME | ||
| 4 | |||
| 5 | GenOO::TranscriptCollection - Role for a collection of GenOO::Transcript objects | ||
| 6 | |||
| 7 | =head1 SYNOPSIS | ||
| 8 | |||
| 9 | # This role defines the interface for collections of L<GenOO::Transcript> objects | ||
| 10 | # Cannot be initialized | ||
| 11 | |||
| 12 | =head1 DESCRIPTION | ||
| 13 | |||
| 14 | This role defines the interface for collections of L<GenOO::Transcript> objects. | ||
| 15 | All required attributes and subs must be present in classes that consume | ||
| 16 | this role. | ||
| 17 | |||
| 18 | =cut | ||
| 19 | |||
| 20 | # Let the code begin... | ||
| 21 | |||
| 22 | package GenOO::TranscriptCollection; | ||
| 23 | 1 | $GenOO::TranscriptCollection::VERSION = '1.5.0'; | |
| 24 | 1 | ▶ | use Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 25 | 1 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 26 | 1 | ▶ | use GenOO::TranscriptCollection::Factory; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 27 | |||
| 28 | ####################################################################### | ||
| 29 | ######################## Class Methods ######################## | ||
| 30 | ####################################################################### | ||
| 31 | sub create_from { | ||
| 32 | 1 | ▶ | my ($class, @attributes) = @_; |
|
Subroutine
create_from: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 33 | 1 | return GenOO::TranscriptCollection::Factory->create(@attributes)->read_collection; | |
| 34 | } | ||
| 35 | 1 | 1; | |