Created
October 11, 2018 01:58
-
-
Save arlandism/447aa9097dc7efbb861a0229dd278a35 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
def a | |
@a | |
end | |
@a = "a" | |
a = a + "b" | |
#=> NoMethodError: undefined method `+' for nil:NilClass | |
# from (irb):6 | |
# from /Users/arlandis/.rvm/rubies/ruby-2.3.5/bin/irb:11:in `<main>' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment