From: ts Date: 2008-04-05T00:12:25+09:00 Subject: Re: Module.new(&block) in Ruby 1.9 Sylvain Joyeux wrote: > Event if I did not investigate the issues further, I would not be > surprised if it also fixes yes, to give you an example with the second URL > http://rubyforge.org/tracker/?func=detail&aid=18967&group_id=426&atid=1698 > http://rubyforge.org/tracker/?func=detail&aid=19304&group_id=426&atid=1698 > vgs% cat b.rb def method puts "entering method" klass = Class.new do define_method(:bla) do puts "returning from bla" return end end klass.new.bla puts "exiting method normally" end method vgs% vgs% ./ruby -v b.rb ruby 1.9.0 (2008-04-04 revision 15902) [i686-linux] entering method returning from bla exiting method normally vgs% Guy Decoux