| 1 | package Cikl::Smrt::Parser; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | use Scalar::Util qw(blessed); | ||
| 6 | use Cikl::Models::Event; | ||
| 7 | use Mouse; | ||
| 8 | |||
| 9 | use namespace::autoclean; | ||
| 10 | |||
| 11 | has 'config' => ( | ||
| 12 | is => 'ro', | ||
| 13 | required => 1 | ||
| 14 | ); | ||
| 15 | |||
| 16 | sub name { | ||
| 17 | my $class = shift; | ||
| 18 | die("$class has not implemented the name() method!"); | ||
| 19 | } | ||
| 20 | |||
| 21 | sub parse { | ||
| 22 | my $self = shift; | ||
| 23 | |||
| 24 | return(blessed($self) . " has not implemented the parser() method!"); | ||
| 25 | } | ||
| 26 | |||
| 27 | __PACKAGE__->meta->make_immutable; | ||
| 28 | |||
| 29 | 1; |