From: lasitha Date: 2009-02-23T14:04:47+09:00 Subject: Re: Instance variables on anonymous objects does not work? On Mon, Feb 23, 2009 at 10:06 AM, Zayd Connor wrote: > How is the a =... invocation wrong? Just coming from a curious ruby > beginner Compare the value of a in both cases (in irb): 01> a = Object.new --> # 02> a.instance_eval do 03> @names = ["you", "me"] 04> end --> ["you", "me"] 05> a --> # 06> a = Object.new.instance_eval do 07> @names = ["you", "me"] 08> end --> ["you", "me"] 09> a --> ["you", "me"] Does that help? lasitha