From: Daniel Berger Date: 2003-06-05T01:57:32+09:00 Subject: remove_method question Hi all, Searched the archives but didn't quite find what I was looking for. Let's say I have a class: class Foo attr_reader :val1, :val2 def initialize @val1 = "hello" @val2 = "world" end end Then, let's say I have a subclass of Foo, and I want to remove the "val1" method. How would I do it? class Bar < Foo remove_method(:val1) # Fails, says 'val1' is not defined in Bar (?) self.remove_method(:val1) # Fails, says private method class << self remove_method(:val1) # Fails, says 'val1' is not defined in Class end end I also tried this within Bar's initialize() method with no luck. Any ideas? Dan