Skip to content

Instantly share code, notes, and snippets.

@fogus
Forked from stevej/gist:1177289
Created September 8, 2011 16:39
Show Gist options
  • Save fogus/1203861 to your computer and use it in GitHub Desktop.
Save fogus/1203861 to your computer and use it in GitHub Desktop.
For when you accidentally write Scala in Ruby
# for when I acccidentally try to val foo = bar something.
def val x
x
end
val foo = 1 + 2
puts "#{foo}" # ==> 3
# Yeah, just jam that into Kernel like everybody else. why not?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment