From: Shugo Maeda Date: 2010-11-26T11:26:39+09:00 Subject: [ruby-core:33397] Re: [Ruby 1.9-Feature#4085][Open] Refinements and nested methods Hi, 2010/11/26 Haase, Konstantin : >>> Do we need Kernel#refine? >> >> I want it. > > What would be the difference between Kernel#refine and Module#prepend? > I mean, what point do local refinements have in a global scope? Kernel#refine doesn't refine classes in a global scope, but in a file or method scope. If you call Kernel#refine at the top-level, the refinements are enabled only in that file. If you call Kernel#refine in a method, the refinements are enabled only in the method. -- Shugo Maeda