>>>>> "B" == Brian Candler <B.Candler / pobox.com> writes:

B>   class Bar
B>     def val1(*args,&block)
B>       method_missing(:val1,*args,&block)

 What do you think that undef_method do ?

svg% cat b.rb
#!/usr/bin/ruby
def method_missing(id, *args)
   p "method_missing #{id}"
end

class A
   def val1; end
end

class B < A
   undef_method :val1
end

B.new.val1
svg% 

svg% b.rb
"method_missing val1"
svg% 



Guy Decoux