Skip to content

Instantly share code, notes, and snippets.

@arlandism
Created October 11, 2018 01:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arlandism/447aa9097dc7efbb861a0229dd278a35 to your computer and use it in GitHub Desktop.
Save arlandism/447aa9097dc7efbb861a0229dd278a35 to your computer and use it in GitHub Desktop.
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