/yawc

Yet Another Wrapper Compiler for Elixir and Erlang modules

Primary LanguageElixirDo What The F*ck You Want To Public LicenseWTFPL

YAWC

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 to wrap/1 look pretty!

WARNING

Please don't use this library to create wrapper libraries. To be honest, you'd be better off not using it at all.

License

Licensed under WTFPL. See LICENSE file for more information.