[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] ob-ruby.el: allow specification of ruby command w/header arg
From: |
Aaron Madlon-Kay |
Subject: |
[PATCH] ob-ruby.el: allow specification of ruby command w/header arg |
Date: |
Tue, 20 Oct 2020 17:49:56 +0900 |
Using 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)
--
2.28.0
- [no subject], Aaron Madlon-Kay, 2020/10/20
- [PATCH] ob-ruby.el: allow specification of ruby command w/header arg,
Aaron Madlon-Kay <=