From: Frederick Cheung Date: 2007-12-23T23:46:28+09:00 Subject: Re: module_eval differences between 1.8 & 1.9 On 23 Dec 2007, at 14:40, Frederick Cheung wrote: > Consider the following: > > module Foo > end > > def do_stuff_to_foo(&block) > Foo.module_eval &block > end > > In ruby 1.8 you can do something like this > > do_stuff_to_foo {def greeting; 'hello'; end} > Foo.instance_methods #=> ['hello'] That should of course say Foo.instance_methods #=> ["greeting"] Sorry for the noise Fred