Lets you set the class of an object.
Lets you set the class of an object. Use at your own risk.
my_object.class = OtherClass
Yes… it is dangerous… don’t come crying to me if your computer ignites.
Get The CodeIf you just want to use change_class, you can install it via RubyGems:
gem install change_classIf you want to hack on change_class, clone it from GitHub:
git clone git://github.com/seattlerb/change_class