From: Yusuke ENDOH Date: 2010-11-26T02:24:57+09:00 Subject: [ruby-core:33386] Re: [Ruby 1.9-Feature#4085][Open] Refinements and nested methods Hi, Are these intended? (1) class Foo end module FooExtCore def foo bar end def bar end end module FooExt refine(Foo) { include FooExtCore } end using(FooExt) Foo.new.foo #=> undefined local variable or method `bar' I can guess what's going on, but this will be a FAQ... (2) class Foo end module FooExt end using FooExt module FooExt refine(Foo) { include FooExt } def foo end end Foo.new.foo #=> undefined method `foo' Note that I don't want to attack this proposal. I'm really for this and I hope to help improve it. Please don't misunderstand me :-) -- Yusuke Endoh