emacs inf-ruby run ruby buffer with argument? -
emacs inf-ruby run ruby buffer with argument? -
im using inf-ruby mode in emacs, live it. know how run ruby script arguments inf-ruby? instance, need pass argument arg0 , arg1 test.rb
test.rb -arg0 -arg1
the short answer: instead of m-x run-ruby, phone call prefix arg so: c-u m-x run-ruby. allow edit command line.
the long answer: don't. instead re-structure code can test / phone call functionality without relying on parsing command line arguments. simple tests command line whether argument parsing works out okay.
ruby emacs
Comments
Post a Comment