Created
October 31, 2011 18:26
-
-
Save jballanc/1328353 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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