The best interactive environment I've ever used (and still use) is an Emacs buffer with an associated inferior process. The default keybindings for Ruby mode interaction with inferior-ruby are a bit lacking, I have made a couple customisations for myself that can be helpful: <a href="https://www.gkayaalp.com/gk.html#orgf0bce87" rel="nofollow">https://www.gkayaalp.com/gk.html#orgf0bce87</a> .