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
endAmazing! 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
endOther fantastic features include:
- wrap multiple modules as long as function names don't clash!
- wrap aliased modules!
.formatter.exsfile with:exportdirective! Make your calls towrap/1look 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.