>>>>> "M" == MikkelFJ  <mikkelj-anti-spam / post1.dknet.dk> writes:

M> I have never tried, I just assumed that once you had created your class,
M> changes to parent would not be transparent.

 There is at least one case where it's not totally transparent. This is not
 really for parent but when you use a module, for example :


pigeon% cat b.rb
#!/usr/bin/ruby
module A
   def a
      puts "a"
   end
end

class C
   include A
end

C.new.a

module B
   def b
      puts "b"
   end
end

module A
   include B
   def a
      puts "A"
   end
end

C.new.a
C.new.b
pigeon% 

pigeon% b.rb
a
A
./b.rb:28: undefined method `b' for #<C:0x401a6270> (NameError)
pigeon% 


Guy Decoux