Created
June 15, 2010 22:53
-
-
Save toothrot/439871 to your computer and use it in GitHub Desktop.
if it's seen by the compiler, it's not a NameError
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
hey = nil | |
yo = "foo" | |
baz = 3 if false | |
puts hey.inspect | |
puts yo.inspect | |
puts baz.inspect # Nil!! | |
puts spaz.inspect # Name Error |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment