Does anyone know if it’s possible to pipe the output of a command to a
running instance of irb?
I said it was silly.
But it seems like it would be really useful. Something along the lines
#nix>find ./ -name ".foo" |toirb
that would dump the output from find (as an array? As text?) to an
already active instance of IRB.
Does such a thing exist?
If not I feel confident enough to try and butcher up something like it.
My guess is the instance of IRB would have to instantiate some object
(lets call it P), and then when the |toruby command was used, the P
object could be queried for the list.