6 ms·
That's pretty much what Pry provides for Ruby. It might not be as polished as the Smalltalk tools yet, but there's no inherent problem doing this with Ruby. Th
by vidarh 15y ago
That's pretty much what Pry provides for Ruby.
It might not be as polished as the Smalltalk tools yet, but there's no inherent problem doing this with Ruby. There might be some things you can't do in pure Ruby, such as perhaps replacing a class pointer to actually change the class of an object, but low level hackery like that is easily enough done with a small C extension - I've poked around in MRI's C-level view of the object model before and it's pretty simple.