Created
October 16, 2014 04:34
-
-
Save cddr/ac89b88f93f92b6b913b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn encrypt [attr] | |
(reify | |
clojure.lang.Named | |
(getNamespace [this] | |
(.getNamespace attr)) | |
(getName [this] | |
(.getName attr)) | |
clojure.lang.IFn | |
(invoke [_ obj] | |
(password/encrypt (attr obj))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment