문제

I use pry with the standard editor vi. Whenever i type 'edit' inside pry, vi shows up. That's good.

And with "load 'file'" i can run a ruby file in the pry session but when i type edit, the content of the file is not available in the vi editor of the pry session.

Is there a way to load a ruby file directly in the editor within pry?

도움이 되었습니까?

해결책

As mudasobwa pointed out:

It's simple like 'edit myfile.rb'

and I end up with vi editing the file requested.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top