From 60c1b9387cd98b3ba875bddb13c86e9e090cb1f1 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Sun, 10 Aug 2014 12:21:13 +0100 Subject: init --- templates/ruby.rb | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 templates/ruby.rb (limited to 'templates/ruby.rb') diff --git a/templates/ruby.rb b/templates/ruby.rb new file mode 100644 index 0000000..dadd656 --- /dev/null +++ b/templates/ruby.rb @@ -0,0 +1,23 @@ +#!/usr/bin/env ruby + +# template.rb +# Patrick Simianer +# YYYY-MM-DD + +STDIN.set_encoding 'utf-8' +STDOUT.set_encoding 'utf-8' +STDERR.set_encoding 'utf-8' +STDOUT.sync = true +STDERR.sync = true + + +def fun(arg) + puts 'Hello, World!' +end + + +if __FILE__ == $0 + arg = ARGV[0] + fun(arg) +end + -- cgit v1.2.3