Copying data from a running ruby ​​script
2 answers
This is not for the faint of heart, but there is a tool called Hijack that can give you a live irb prompt to start a ruby ​​process. RubyInside has a very quick rundown and example of how to use this .
+7
source to share
It would be very easy to add a signal handler that responds by dumping the serialized version of your hash table.
See Signal.trap .
0
source to share