summaryrefslogtreecommitdiff
path: root/templates/ruby.rb
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2014-08-10 12:21:13 +0100
committerPatrick Simianer <p@simianer.de>2014-08-10 12:21:13 +0100
commit60c1b9387cd98b3ba875bddb13c86e9e090cb1f1 (patch)
treeb3d144e80d9386821485a29ed554525e79f22cad /templates/ruby.rb
init
Diffstat (limited to 'templates/ruby.rb')
-rw-r--r--templates/ruby.rb23
1 files changed, 23 insertions, 0 deletions
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 <p@simianer.de>
+# 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
+