From: Florian Gross Date: 2004-04-07T05:29:16+09:00 Subject: Re: Object oriented does not mean class oriented rolo wrote: > Hi all, Moin! > But for ease of reading and declearations we use the present ruby form. > I know we can do this in the current ruby. But it would be better if we switch to something like this. I'm not sure if I understand you correctly, but these two things are very possible already in the current Ruby: 1) MyClass = Class.new(BaseClass) do define_method(:foo) do puts "hello" end def bar puts "world" end end 2) def Bean.new_class(&block) Class.new(Bean, &block) end MyClass = Bean.new_class do def a; end define_method(:b) do; end end > regards, > rolo More regards, Florian Gross