How to implement editor within Ruby script?

How can you start up an external cli editor (like emacs, vi, pico etc.)
from
a ruby script to edit a file and return to the script after editing is
completed?

Tony

dasDasein wrote:

How can you start up an external cli editor (like emacs, vi, pico etc.)
from a ruby script to edit a file and return to the script after editing is
completed?

system editor, filename