Skip to content
/ yawc Public

Yet Another Wrapper Compiler for Elixir and Erlang modules

License

Notifications You must be signed in to change notification settings

arkgil/yawc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Releases

No releases published

Packages

No packages published

Languages