From: matz@... (Yukihiro Matsumoto) Date: 2003-02-20T01:23:36+09:00 Subject: Re: How to test for existence of instance variable? Hi, In message "Re: How to test for existence of instance variable?" on 03/02/20, Paul Brannan writes: |> @foo ||= [] |> |> trick cannot be done for attributes without causing warning. | |This is only a problem for dynamically-added attributes, since |attributes that are known when the object is created can (and should) be |initialized to nil. To dynamically create an attribute, I need more |that just a simple assignment anyway, so this trick doesn't work for |dynamic attributes. Could you describe "more" in "I need more"? Something like AttrWithDefault in [ruby-talk:65182]? matz.