Created
September 2, 2010 06:13
-
-
Save ryan-allen/561938 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
a = lambda { | |
b.call() | |
} | |
b = lambda { | |
:IMA_B_LOL | |
} | |
b.call() # raises nothing | |
a.call() # raises NameError: undefined local variable or method ‘b’ for main:Object ... WTF! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment