Last active
August 29, 2015 14:07
-
-
Save ethangunderson/ca5ae2c9f7da893efa85 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
irb(main):001:0> foo | |
NameError: undefined local variable or method `foo' for main:Object | |
from (irb):1 | |
from /Users/egunderson/.rubies/ruby-2.1.2/bin/irb:11:in `<main>' | |
irb(main):002:0> foo = 'bar' if false | |
=> nil | |
irb(main):003:0> foo | |
=> nil | |
irb(main):004:0> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://stackoverflow.com/a/12928261