From: Mark Wilson Date: 2002-01-31T10:24:55+09:00 Subject: Newbie question about mixins I have a module that I want to use as a mixin. I have defined a method within the module that attempts to assign a value to a hash 'slot': module myMod def mixinMethod(param1, param2) @hashVar[param1] = param2 end end I include this module into my class, and call 'mixinMethod'. I get a NameError because, apparently, I have not told the program that 'hashVar' is a hash table. Where should I do a Hash.new() or other initialization? Thanks, Mark Wilson Xerox, The Document Company mwilson@crt.xerox.com