diff options
author | pks <pks@pks.rocks> | 2021-01-23 11:24:30 +0100 |
---|---|---|
committer | pks <pks@pks.rocks> | 2021-01-23 11:24:30 +0100 |
commit | e8d6464f5c834b2ea801ac596ee1d31791f2c2fd (patch) | |
tree | 40603505815b83a2043bd89da6ac0660db3bb982 /templates/ruby.rb | |
parent | 6423f685e82168ad26df06c9701af89488d6bdec (diff) | |
parent | af8617eeff5e40df0610b00214c20095654d63a6 (diff) |
Merge remote-tracking branch 'templates/master'
Diffstat (limited to 'templates/ruby.rb')
-rw-r--r-- | templates/ruby.rb | 23 |
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 + |