From: lopex Date: 2004-08-18T00:00:58+09:00 Subject: Re: instance_eval ts wrote: > > It change self and the default class So it seems it uses the class accessor of self (btw. the def construct works in this way ? haven't seen it is a method like e.g. private, protected etc.) so why the given example outputs nil: ? --- class A def initialize # @v="value" end end a=A.new @v="second value" p a.instance_eval("@v") --- I know that there is no instance object @v in 'a', but if the scope remains the same, should we have an access to @v defined in outer object of class Object ? Or is the the reason we always can use instance variable identifier even it was not defined sa far... ? TIA Marcin Mielzynski