Skip to content

Instantly share code, notes, and snippets.

@jballanc
Created October 31, 2011 18:26
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jballanc/1328353 to your computer and use it in GitHub Desktop.
Save jballanc/1328353 to your computer and use it in GitHub Desktop.
# Both examples work under Ruby 1.9.2, but not under Ruby 1.9.3 (and yes, I
# realize both are bad practice anyway...):
# 1.
def test(foo, &block)
end
test 'hello', do; end
# 2.
class Foo; end
Foo.new(nil)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment