Is it possible to change the class of a Ruby object once it has been instantiated, something like:
class A end class B end a = A.new a.class = B
simple answer, no:
NoMethodError: undefined method `class=' for #
however you can delete methods and mix in modules and such so as to leave an object that looks totally different...