4 ms·
I don't think it can outright replace objects, but Ruby objects are extremely malleable, so you could e.g. override each and every method for a specific object
by vidarh 13y ago
I don't think it can outright replace objects, but Ruby objects are extremely malleable, so you could e.g. override each and every method for a specific object to forward to a replacement. Replacing the object entirely wouldn't be impossible, but it'd likely require some more invasive changes.
- kilon 13y agoyes those things Python can do too. Replace methods, recreate objects etc. And probably you can find tons of workaround for things it cant do out of the box. Its not bad, not bad at all :) I really like Ruby :)