View Source ExKits.Macros.FunctionGenerator (ex_kits v0.2.7)

This module provides a macro for generating functions in Elixir code.

require FunctionGenerator

FunctionGenerator.generate_function :add, [a, b], do: a + b

Summary

Functions

Link to this macro

generate_function(name, args, code)

View Source (macro)