From: "José Ignacio" Date: 2008-09-01T22:39:22+09:00 Subject: Undo Object.extend Hi all: I'm trying to change the behaviour of a specific instance at runtime. I'm using modules in the following way: module NormalBehaviour def talk puts 'Hi' end end class A include NormalBehaviour end module EnhancedBehaviour def talk super puts 'Goodbye' end end a = A.new a.talk # Output: Hi a.extend EnhancedBehaviour a.talk # Output: Hi # Goodbye I would like to be able to make variable "a" to its original state, i.e., by 'deincluding' EnhancedBehaviour. Something like this: a.deinclude EnhancedBehaviour a.talk # Output: Hi Is there a way to do this? -- Posted via http://www.ruby-forum.com/.