aboutsummaryrefslogtreecommitdiff
path: root/SBO-Lib/lib/SBO/App.pm
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2018-02-14 07:03:34 +0100
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2018-02-14 07:08:10 +0100
commit34508527cab3b61fca58aa9e3643a6c1da41c736 (patch)
treee40c42c7f6fc38b476ce65a9f52faf92aa763611 /SBO-Lib/lib/SBO/App.pm
parent896b0ac9531b0b3bc2f08989a84eed6733e4328a (diff)
downloadsbotools2-34508527cab3b61fca58aa9e3643a6c1da41c736.tar.xz
SBO::App: separate out new constructor
Diffstat (limited to 'SBO-Lib/lib/SBO/App.pm')
-rwxr-xr-xSBO-Lib/lib/SBO/App.pm24
1 files changed, 24 insertions, 0 deletions
diff --git a/SBO-Lib/lib/SBO/App.pm b/SBO-Lib/lib/SBO/App.pm
new file mode 100755
index 0000000..7033d93
--- /dev/null
+++ b/SBO-Lib/lib/SBO/App.pm
@@ -0,0 +1,24 @@
+package SBO::App::Remove;
+
+# vim: ts=2:et
+#
+# authors: Luke Williams <xocel@iquidus.org>
+# Jacob Pipkin <j@dawnrazor.net>
+# Andreas Guldstrand <andreas.guldstrand@gmail.com>
+# license: WTFPL <http://sam.zoy.org/wtfpl/COPYING>
+
+use 5.16.0;
+use strict;
+use warnings FATAL => 'all';
+use File::Basename;
+
+sub new {
+ my $class = shift;
+
+ my $self = _parse_opts(@_);
+ $self->{fname} = basename( (caller(0))[1] );
+
+ return bless $self, $class;
+}
+
+1;