Skip to content

Instantly share code, notes, and snippets.

@novikserg
Created July 23, 2015 15:52
Show Gist options
  • Save novikserg/322381bfd19e6fb350ba to your computer and use it in GitHub Desktop.
Save novikserg/322381bfd19e6fb350ba to your computer and use it in GitHub Desktop.
class MyClass
def word
"word"
end
def go
word = word
word
end
end
def local_stuff
mc = MyClass.new
puts mc.go
end
local_stuff # => nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment