Skip to content

Instantly share code, notes, and snippets.

@etdebruin
Created December 28, 2011 18:27
Show Gist options
  • Save etdebruin/1529023 to your computer and use it in GitHub Desktop.
Save etdebruin/1529023 to your computer and use it in GitHub Desktop.
Working with instance vars issue
module B
@rara = Array.new
end
class A
include B
def show
puts @rara
end
def add
@rara.push('hi')
end
end
foo = A.new
foo.add
foo.show
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment