Skip to content

Instantly share code, notes, and snippets.

@Raynes
Created November 22, 2011 23:13
Show Gist options
  • Save Raynes/1387364 to your computer and use it in GitHub Desktop.
Save Raynes/1387364 to your computer and use it in GitHub Desktop.
(defn get-var-docstring [nspace-sym sym]
(try
(-> `(var ~(symbol (str nspace-sym) (str sym))) eval meta :doc)
;; HACK: to handle types
(catch Exception _)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment