summaryrefslogtreecommitdiff
path: root/templates/ruby.rb
diff options
context:
space:
mode:
authorpks <pks@pks.rocks>2021-01-23 11:24:30 +0100
committerpks <pks@pks.rocks>2021-01-23 11:24:30 +0100
commite8d6464f5c834b2ea801ac596ee1d31791f2c2fd (patch)
tree40603505815b83a2043bd89da6ac0660db3bb982 /templates/ruby.rb
parent6423f685e82168ad26df06c9701af89488d6bdec (diff)
parentaf8617eeff5e40df0610b00214c20095654d63a6 (diff)
Merge remote-tracking branch 'templates/master'
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
+