Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
rename 8490a1e Apr 26, 2016
1 contributor

Users who have contributed to this file

9 lines (8 sloc) 174 Bytes
defmodule Sitemap.Define do
defmacro define(key, value) do
quote do
@unquote(key)(unquote(value))
def unquote(key)(), do: @unquote(key)()
end
end
end
You can’t perform that action at this time.