hipster <hipster / xs4all.nl> 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/