Skip to content

Instantly share code, notes, and snippets.

@amatsuda
Created December 24, 2010 22:21
Show Gist options
  • Save amatsuda/754538 to your computer and use it in GitHub Desktop.
Save amatsuda/754538 to your computer and use it in GitHub Desktop.
% cat false.rb
if false
a = 1
end
puts a
puts b
% ruby -v false.rb
ruby 1.8.7 (2010-08-16 patchlevel 302) [i686-darwin10]
nil
false.rb:5: undefined local variable or method `b' for main:Object (NameError)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment