From: SASADA Koichi Date: 2008-05-20T19:49:53+09:00 Subject: Re: [ruby-core:16806] [1.9] nil.instance_eval Hi, ts wrote: > Sorry, there is something that I've not understood in bootstraptest/test_eval.rb > why I can't use instance_{eval,exec} to define method with nil ? $ ruby -ve ' begin nil.instance_eval { def a() :a end } rescue TypeError p :ok end' ruby 1.8.5 (2006-08-25) [i486-linux] :ok There is no eigenclass of nil. -- // SASADA Koichi at atdot dot net