Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
def a(p)
p.call()
raise "The world is safe"
end
def b
x = Proc.new { return Proc.new { return false } }
a(x).call
raise 'Maybe here, we might save the world. Let us do that.'
end
def c
b
raise 'Bang! Nuclear explosion. You are dead.'
end
c #=> Would you expect this to destroy the earth?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.