Created
August 31, 2015 15:48
-
-
Save icebreaker/bf785de6a6abebc54336 to your computer and use it in GitHub Desktop.
Runy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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