Yet Another Wrapper Compiler.
Thanks to this beatiful library, defining an unnecessary wrapper around an Erlang library in Elixir is just a matter of a single line of code!
defmodule UselessWrapper do
import YAWC
wrap :awesome_library
end
Amazing! But do you want to know the real secret sauce? You can define wrappers around Elixir modules, too!
defmodule UselessWrapper do
import YAWC
wrap AwesomeLibrary
end
Other fantastic features include:
- wrap multiple modules as long as function names don't clash!
- wrap aliased modules!
.formatter.exs
file with:export
directive! Make your calls towrap/1
look pretty!
Please don't use this library to create wrapper libraries. To be honest, you'd be better off not using it at all.
Licensed under WTFPL. See LICENSE
file for more information.