summaryrefslogtreecommitdiff
path: root/lib/Carton/Package.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Carton/Package.pm')
-rw-r--r--lib/Carton/Package.pm12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/Carton/Package.pm b/lib/Carton/Package.pm
new file mode 100644
index 0000000..6b1f381
--- /dev/null
+++ b/lib/Carton/Package.pm
@@ -0,0 +1,12 @@
+package Carton::Package;
+use strict;
+use Class::Tiny qw( name version pathname );
+
+sub BUILDARGS {
+ my($class, @args) = @_;
+ return { name => $args[0], version => $args[1], pathname => $args[2] };
+}
+
+1;
+
+