Browse Source

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
Aaron Madlon-Kay 4 years ago
parent
commit
3ce495cc44
1 changed files with 3 additions and 0 deletions
  1. 3 0
      lisp/ob-ruby.el

+ 3 - 0
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)