Skip to content

Instantly share code, notes, and snippets.

@icebreaker
Created August 31, 2015 15:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save icebreaker/bf785de6a6abebc54336 to your computer and use it in GitHub Desktop.
Save icebreaker/bf785de6a6abebc54336 to your computer and use it in GitHub Desktop.
Runy
(puts "Hello World in Runy ...")
(def (say (x)
(puts "Hello World in #{x} once again ...")
))
(class (Runy
(def (say (x)
(puts "Hello World in #{x} for the last time ...")
))
))
(say "Runy")
(Runy.new.say "Runy")
# vim: set ft=clojure:
#!/usr/bin/env ruby
if ARGV.any?
eval(File.read(ARGV.first).gsub(/\)\)/, "\nend").gsub(/\)|\(/, '').gsub(/\n+/, "\n"))
else
puts "Usage: #{File.basename(__FILE__, File.extname(__FILE__))} script.runy"
end
# vim: set ft=ruby:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment