>>>>> "J" == James Davis <jd204c / nak.spak.nih.gov> writes:

J> # Prevent a subclass from overriding a superclass' method

 Try this

J> class Sub < Base
J>   def Base.meth0; puts 'ACK'; end  #--> Error

     class << Base
        def meth0; puts 'ACK'; end
     end

J>   def Sub.meth0; puts 'NAK'; end   #--> OK
J>   def meth4; puts 'D'; end         #--> OK
J>   def meth1; puts 'B'; end         #--> Error
J> end


Guy Decoux