summaryrefslogtreecommitdiff
path: root/lib/GnuPG/HashInit.pm
diff options
context:
space:
mode:
authorAndrew Ruthven <andrew@etc.gen.nz>2021-08-18 04:12:35 +0200
committerAndrew Ruthven <andrew@etc.gen.nz>2021-08-18 04:12:35 +0200
commit136c25e277302900abd4ea997ce28721c59b5676 (patch)
tree7f2461afd6381e23d4990d7501c8872eb5d40a0f /lib/GnuPG/HashInit.pm
Import libgnupg-interface-perl_1.02.orig.tar.gz
[dgit import orig libgnupg-interface-perl_1.02.orig.tar.gz]
Diffstat (limited to 'lib/GnuPG/HashInit.pm')
-rw-r--r--lib/GnuPG/HashInit.pm12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/GnuPG/HashInit.pm b/lib/GnuPG/HashInit.pm
new file mode 100644
index 0000000..a278b09
--- /dev/null
+++ b/lib/GnuPG/HashInit.pm
@@ -0,0 +1,12 @@
+package GnuPG::HashInit;
+use Moo::Role;
+
+sub hash_init {
+ my ($self, %args) = @_;
+ while ( my ( $method, $value ) = each %args ) {
+ $self->$method($value);
+ }
+}
+
+1;
+__END__