[libcatmandu-perl] 07/46: Adding a Null exporter

Jonas Smedegaard dr at jones.dk
Tue Oct 14 13:52:51 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to tag 0.9205
in repository libcatmandu-perl.

commit 9ca8c1ffd4c9e05cd8337de44e6864e617c8f940
Author: Patrick Hochstenbach <patrick.hochstenbach at ugent.be>
Date:   Thu Jul 3 14:18:28 2014 +0200

    Adding a Null exporter
---
 lib/Catmandu/Exporter/Null.pm | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/lib/Catmandu/Exporter/Null.pm b/lib/Catmandu/Exporter/Null.pm
new file mode 100644
index 0000000..e108ff1
--- /dev/null
+++ b/lib/Catmandu/Exporter/Null.pm
@@ -0,0 +1,34 @@
+package Catmandu::Exporter::Null;
+
+use namespace::clean;
+use Catmandu::Sane;
+use Moo;
+
+with 'Catmandu::Exporter';
+
+sub add {}
+
+=head1 NAME
+
+Catmandu::Exporter::Null - a expoter that doesn't export anything
+
+=head1 SYNOPSIS
+
+  	# From the commandline
+  	$ catmandu convert JSON --fix myfixes to Null < /tmp/data.json
+
+
+=head1 DESCRIPTION
+
+This exporter exports nothing and can be used as in situations where you e.g. export
+data from a fix.
+
+=head1 SEE ALSO
+
+L<Catmandu::Exporter>
+
+=cut
+
+
+1;
+

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libcatmandu-perl.git



More information about the Pkg-perl-cvs-commits mailing list