From 3ce495cc44ef14f8364fc5af96895e618a963ffa Mon Sep 17 00:00:00 2001 From: Aaron Madlon-Kay Date: Tue, 20 Oct 2020 17:49:56 +0900 Subject: [PATCH] ob-ruby.el: allow specification of ruby command w/header arg b-ruby.el: Use the :ruby header arg * lisp/ob-ruby.el (org-babel-execute:ruby): Locally set `org-babel-ruby-command' using a header argument. TINYCHANGE --- lisp/ob-ruby.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lisp/ob-ruby.el b/lisp/ob-ruby.el index 669c2eabf..80870c6c0 100644 --- a/lisp/ob-ruby.el +++ b/lisp/ob-ruby.el @@ -74,6 +74,9 @@ This function is called by `org-babel-execute-src-block'." (cdr (assq :session params)))) (result-params (cdr (assq :result-params params))) (result-type (cdr (assq :result-type params))) + (org-babel-ruby-command + (or (cdr (assq :ruby params)) + org-babel-ruby-command)) (full-body (org-babel-expand-body:generic body params (org-babel-variable-assignments:ruby params))) (result (if (member "xmp" result-params)