Created
February 29, 2016 23:09
-
-
Save philosodad/e31fa52a4ac2dc99a408 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
defmodule Settings do | |
defmacro create_method(name) do | |
m_name = String.to_atom("get_#{name}") | |
quote do | |
def unquote(m_name)() do | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment