From: Sam McCall Date: 2004-08-12T23:47:42+09:00 Subject: Re: getting object attributes David A. Black wrote: > That will print: > > nil > nil > > @goo and @boo are instance variables of the Class object Foo, not of > its instances. Rule #1 of this newsgroup should be: "Read the question twice" and Rule #2 should be "test your answer". The rules should be automatically appended to every post :-) I looked at that and assumed those definitions were in the initialize method. To be fair, I'm fairly sure that _was_ the intention ;-) >> foo.instance_variable_set nil > (You need two arguments for instance_variable_set :-) comp.lang.ruby.instance_variable_set "@rule2" "test your answer" Better? Thanks for that, I think it means it's time for me to sleep. Sam