From: "Weirich, James" Date: 2003-12-10T04:10:16+09:00 Subject: Re: Adjusting the Scope of Blocks > svg% cat b.rb > #!/usr/bin/ruby > > class A > def self.n > puts "A::n" > end > end > > def n > puts "Object#n" > end > > A.class_eval { n } > svg% > > svg% b.rb > A::n > svg% Also A.instance_eval { n } # => "A::n" So what's the difference between class_eval and instance_eval for a class? -- -- Jim Weirich / Compuware -- FWP Capture Services -- Phone: 859-386-8855