i tried to replace methods and variables common to many classes by a
mixin. I attached the file that contains the module as well as the file
where the module is mixed in. Here is a short schematic version of what
i want to do.
@array = 
def add x
Here is the original error output.
addElement': undefined methodpush’ for
initialize' from ./game.rb:35:innew’
initialize' from ./main.rb:5:innew’
I think i saw an example where instance variables were mixed in. So, why
would they be nil?