From: "Guy N. Hurst" Date: 2001-07-06T21:11:04+09:00 Subject: [ruby-talk:17406] Re: Adding a method to a class at the top-level Guillaume Cottenceau wrote: > ... > > 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 > hmm. Not that I care, but it occurred to me that we have eval, class_eval, and instance_eval. I wonder if that means it would be okay to have def, class_def, and instance_def? class_def Aap.wim; puts 'ZUS'; end (class method, same as class<