I noticed in IRB if you type:
Readline::HISTORY << 'something = ->() { 5 }'
And then when you press the up arrow key on your keyboard, you will see your code something = ->() { 5 }. You then press enter to execute the code...
This is true for older Rubies. For Ruby 2.7 though, it's not working. It isn't raising any kind of error, the history doesn't work at all when you press the up arrow key!
In fact I have patched the REPL to fit my own needs. It writes the histories to a file, and then loads them up when you load up the irb shell (just like the MRuby's REPL "mirb"). Here's the patched irb.
Is there a way I to get the patched-irb work with Ruby 2.7?