Function: org-babel-ruby-var-to-ruby

org-babel-ruby-var-to-ruby is a byte-compiled function defined in ob-ruby.el.gz.

Signature

(org-babel-ruby-var-to-ruby VAR)

Documentation

Convert VAR into a ruby variable.

Convert an elisp value into a string of ruby source code specifying a variable of the same value.

Source Code

;; Defined in /usr/src/emacs/lisp/org/ob-ruby.el.gz
(defun org-babel-ruby-var-to-ruby (var)
  "Convert VAR into a ruby variable.
Convert an elisp value into a string of ruby source code
specifying a variable of the same value."
  (if (listp var)
      (concat "[" (mapconcat #'org-babel-ruby-var-to-ruby var ", ") "]")
    (if (eq var 'hline)
	org-babel-ruby-hline-to
      (format "%S" var))))