From: Sam Roberts Date: 2005-02-27T08:44:40+09:00 Subject: Can I remove methods from a single object, but not its class? I want to allow method calls during initialization, but not after: class Foo attr_writer :opt def initialize yield self # doesn't work remove_method 'opt=' # doesn't work class < self remove_method 'opt=' end # there must be a way????? end end f = Foo.new { |s| s.opt = 4 } # I want this to fail! f.opt = 1 This has to be possible... whats the magic? Should I use #method_missing, so I can decide to respond to it only during initialization? Thanks, Sam