Skip to content

Instantly share code, notes, and snippets.

@budnik
Forked from fxposter/quiz2.rb
Created February 12, 2014 07:52
Show Gist options
  • Save budnik/8951567 to your computer and use it in GitHub Desktop.
Save budnik/8951567 to your computer and use it in GitHub Desktop.
def check
yield
rescue => e
e
end
check { "hello, #{1}" } # ?
check { "hello, " + 1 } # ?
check { "hello, " << 1 } # ?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment