From: Joel VanderWerf Date: 2003-12-10T04:15:35+09:00 Subject: Re: Adjusting the Scope of Blocks Weirich, James wrote: > So what's the difference between class_eval and instance_eval for a class? class A; end A.instance_eval { def foo; "FOO"; end } p A.foo # ==> "FOO" class B; end B.class_eval { def foo; "FOO"; end } p B.new.foo # ==> "FOO"