>> I'm not sure if it should be org-mode's responsibility to resolve the >> actual command string, or if it should be done by >> `run-ruby-or-pop-to-buffer'. (It kind of seems like the latter?) >> >> Any thoughts? > > Given the current situation, I don't see a good option aside from doing > the functionp dance in org-babel-ruby-initiate-session as well. Even if > inf-ruby's check was moved downstream of run-ruby-or-pop-to-buffer, I > think it'd be good to fix on ob-ruby's end to work with the current > inf-ruby. > > Juri, what do you think? Thanks for notifying me. I completely agree that the most suitable place to fix would be in org-babel-ruby-initiate-session. So here is a patch that I tested with different org header args: