From 5c0f846d93d7c1815bb9915a2de6ba079b25d203 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Fri, 6 Aug 2010 21:17:49 +0200 Subject: [PATCH] stub base class --- lib/RFID/Biblio/Reader/API.pm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 lib/RFID/Biblio/Reader/API.pm diff --git a/lib/RFID/Biblio/Reader/API.pm b/lib/RFID/Biblio/Reader/API.pm new file mode 100644 index 0000000..caf5eaf --- /dev/null +++ b/lib/RFID/Biblio/Reader/API.pm @@ -0,0 +1,29 @@ +package RFID::Biblio::Reader::API; + +use warnings; +use strict; + +=head1 NAME + +RFID::Biblio::Reader::API - low-level RFID reader documentation + +=cut + +=head1 METHODS + +=head2 new + +Just calls C in reader implementation so this class +can be used as simple stub base class like +L does + +=cut + +sub new { + my $class = shift; + my $self = {@_}; + bless $self, $class; + $self->init && return $self; +} + +1; -- 2.20.1