Skip to content

Instantly share code, notes, and snippets.

Created August 28, 2011 08:29
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 anonymous/1176420 to your computer and use it in GitHub Desktop.
Save anonymous/1176420 to your computer and use it in GitHub Desktop.
<amalloy> (doc update-proxy)
<lazybot> => "([proxy mappings]); Takes a proxy instance and a map of
strings (which must correspond to methods of the proxy
superclass/superinterfaces) to fns (which must take arguments matching
the corresponding method, plus an additional (explicit) first arg
corresponding to this, and updates (via assoc) the proxy's fn map. nil
can be passed instead of a fn, in which case the corresponding method
will revert to the default behavior. Note that this function can be
used to update the behavior of an existing instance without changing
its identity."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment