B
Bertram Scharpf
Hi,
what happens here?
class C
end
c = C.new
class <<c ; @x = 'X' ; end
puts C.instance_variables, C.instance_eval( '@x')
puts c.instance_variables, c.instance_eval( '@x')
puts @x
Output:
nil
nil
nil
Thanks in advance
Bertram
what happens here?
class C
end
c = C.new
class <<c ; @x = 'X' ; end
puts C.instance_variables, C.instance_eval( '@x')
puts c.instance_variables, c.instance_eval( '@x')
puts @x
Output:
nil
nil
nil
Thanks in advance
Bertram