File: PatternGenI.pm

package info (click to toggle)
libtfbs-perl 0.6.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,608 kB
  • ctags: 725
  • sloc: perl: 6,980; ansic: 699; makefile: 557; sh: 9
file content (25 lines) | stat: -rwxr-xr-x 509 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package TFBS::PatternGenI;
use vars qw(@ISA);
use strict;

# Object preamble - inherits from Bio::RootI;
use Bio::Root::Root;
use Carp;

@ISA = qw(Bio::Root::Root);

sub pattern  {
    my $self = shift;
    $self->_abstractDeath;
}

sub _abstractDeath {
    # borrowed from BioPerl; with compliments :)
    my $self = shift;
    my $package = ref $self;
    my $caller = (caller())[1];
  
    confess "Abstract method '$caller' defined in interface TFBS::PatternGenI not implemented by pacakge $package";
}