Skip to content

Instantly share code, notes, and snippets.

@halgari
Created December 19, 2012 21:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save halgari/4340392 to your computer and use it in GitHub Desktop.
Save halgari/4340392 to your computer and use it in GitHub Desktop.
(defn wrap-foo [foo]
(reify
IFn
(invoke [this arg]
(.myMethod foo arg))
IDeref
(deref [this]
foo)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment