From: Simon Vandemoortele Date: 2003-04-27T23:54:50+09:00 Subject: Re: How to undefine a member variable ? (or at least hide it from YAML) On Sun, 27 Apr 2003 at 14:13 GMT, Yukihiro Matsumoto wrote: > there's remove_instance_variable to remove instance variables. It's > private so that you should call it from instance method (or within > instance_eval block). That works well (didn't know it existed). Of course this means I will have to go over all my variables and remove the 'empty' ones before calling #to_yaml. Like Anders Borch and Chris Pine, I wondered if I wouldn't be better served using a Hash to implement my class (delegation). A design decision to ponder ... Thank you all for the prompt responses, Simon -- There are 10 types of people in the world... those who understand binary and those who don't.