Skip to content

Instantly share code, notes, and snippets.

@tarcieri
Created November 13, 2010 21:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tarcieri/675678 to your computer and use it in GitHub Desktop.
Save tarcieri/675678 to your computer and use it in GitHub Desktop.
class Foo
def initialize(&block)
try
@bar = block()
catch ex
@bar = ex
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment