Skip to content

Instantly share code, notes, and snippets.

@khia
Created October 26, 2012 18:40
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 khia/3960612 to your computer and use it in GitHub Desktop.
Save khia/3960612 to your computer and use it in GitHub Desktop.
defmacrop _pid(args) do
[_self|rest] = Enum.reverse(args)
session_pid = quote do: unquote(_self).session_pid
element = quote do: unquote(_self).element
[session_pid,element|Enum.reverse(rest)]
end
delegate [element(strategy, value, _self)],
to: :htse_session, as: :element_element, with: _pid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment