Skip to content

Instantly share code, notes, and snippets.

@bjbishop
Last active August 29, 2015 14:20
Show Gist options
  • Save bjbishop/d7feac5de64896e43313 to your computer and use it in GitHub Desktop.
Save bjbishop/d7feac5de64896e43313 to your computer and use it in GitHub Desktop.
Ruby org-mode example
#+name: example1
#+headers: :var param1="0" param2="0"
#+begin_src ruby
print "#{param1} and #{param2}"
#+end_src
#+RESULTS: example1
: nil
#+name: example1 with output
#+call: example1[:results output](param1="hello",param2="there")
#+RESULTS: example1 with output
: hello and there
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment