| 1 | package TFBS::PatternGenI; |
| 2 | use vars qw(@ISA); |
| 3 | use strict; |
| 4 | |
| 5 | # Object preamble - inherits from Bio::RootI; |
| 6 | use Bio::Root::Root; |
| 7 | use Carp; |
| 8 | |
| 9 | @ISA = qw(Bio::Root::Root); |
| 10 | |
| 11 | sub pattern { |
| 12 | my $self = shift; |
| 13 | $self->_abstractDeath; |
| 14 | } |
| 15 | |
| 16 | sub _abstractDeath { |
| 17 | # borrowed from BioPerl; with compliments :) |
| 18 | my $self = shift; |
| 19 | my $package = ref $self; |
| 20 | my $caller = (caller())[1]; |
| 21 | |
| 22 | confess "Abstract method '$caller' defined in interface TFBS::PatternGenI not implemented by package $package"; |
| 23 | } |
| 24 | |
| 25 |