stub base class
authorDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 6 Aug 2010 19:17:49 +0000 (21:17 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 6 Aug 2010 19:17:49 +0000 (21:17 +0200)
lib/RFID/Biblio/Reader/API.pm [new file with mode: 0644]

diff --git a/lib/RFID/Biblio/Reader/API.pm b/lib/RFID/Biblio/Reader/API.pm
new file mode 100644 (file)
index 0000000..caf5eaf
--- /dev/null
@@ -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<init> in reader implementation so this class
+can be used as simple stub base class like
+L<RFID::Biblio::Reader::librfid> does
+
+=cut
+
+sub new {
+       my $class = shift;
+       my $self = {@_};
+       bless $self, $class;
+       $self->init && return $self;
+}
+
+1;