From: ts Date: 2004-08-17T23:31:59+09:00 Subject: Re: instance_eval >>>>> "l" == lopex writes: l> I read in rdoc that instance_eval changes eval context to the receiver, l> so a thought the scope changes as well. It change self and the default class svg% cat b.rb #!/usr/bin/ruby class A end a = A.new b = A.new a.instance_eval("def a() puts 'a' end") a.a b.a svg% svg% b.rb a ./b.rb:10: undefined method `a' for # (NoMethodError) svg% Guy Decoux