Function: org-babel-ruby-table-or-string

org-babel-ruby-table-or-string is a byte-compiled function defined in ob-ruby.el.gz.

Signature

(org-babel-ruby-table-or-string RESULTS)

Documentation

Convert RESULTS into an appropriate elisp value.

If RESULTS look like a table, then convert them into an Emacs-lisp table, otherwise return the results as a string.

Source Code

;; Defined in /usr/src/emacs/lisp/org/ob-ruby.el.gz
(defun org-babel-ruby-table-or-string (results)
  "Convert RESULTS into an appropriate elisp value.
If RESULTS look like a table, then convert them into an
Emacs-lisp table, otherwise return the results as a string."
  (let ((res (org-babel-script-escape results)))
    (if (listp res)
        (mapcar (lambda (el) (if (not el)
				 org-babel-ruby-nil-to el))
                res)
      res)))