From: Guillaume Cottenceau Date: 2001-07-06T20:50:02+09:00 Subject: [ruby-talk:17405] Re: Adding a method to a class at the top-level hipster writes: [...] > how about: > > class Aap > end > > a = Aap.new > > Aap.class_eval("def noot; puts 'mies'; end") > Aap.class_eval { def wim; puts 'zus'; end } Not every readable IMHO... and it is also longer (in characters) than the current "default" (not very elegant IMHO) way of doing it: class Aap; def wim; puts 'zus'; end; end -- Guillaume Cottenceau - http://mandrakesoft.com/~gc/