Skip to content

Instantly share code, notes, and snippets.

@hoeck
Created May 28, 2010 08:10
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 hoeck/416900 to your computer and use it in GitHub Desktop.
Save hoeck/416900 to your computer and use it in GitHub Desktop.
(in-ns 'user)
(defprotocol Path
(path [t]))
(def my-obj
(proxy [Object user.Path] []
(path [] 'yay)))
(.path my-obj)
=> yay
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment