Skip to content

Instantly share code, notes, and snippets.

@toothrot
Created June 15, 2010 22:53
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 toothrot/439871 to your computer and use it in GitHub Desktop.
Save toothrot/439871 to your computer and use it in GitHub Desktop.
if it's seen by the compiler, it's not a NameError
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