>>>>> "t" == ts  <decoux / moulon.inra.fr> writes:

t>  This make something strange if I'm right (A is the new class)

 He'll have surprise :-)

pigeon% cat b.rb
#!./ruby 
class A < Class
   def tt
      puts "tutu"
   end
end
begin
   A.new.tt
rescue NameError
   p $!
end
A.tt
pigeon% 

pigeon% b.rb
#<NameError: undefined method `tt' for #<Class 0lx401a6824>>
./b.rb:12: undefined method `tt' for A:Class (NameError)
pigeon% 



Guy Decoux