Skip to content

Instantly share code, notes, and snippets.

@lifo
Created November 8, 2008 20:04
Show Gist options
  • Save lifo/23123 to your computer and use it in GitHub Desktop.
Save lifo/23123 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'ruby2ruby'
class Hello
def wtf(&block)
puts block.to_ruby
end
end
Hello.new.wtf do
a = 1
b = 2
a + b
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment