Skip to content

MaxoMacro provides useful macros to simplify your code

License

Notifications You must be signed in to change notification settings

maxohq/maxo_macro

Repository files navigation

MaxoMacro

Hex.pm Docs CI

MaxoMacro provides useful macros to simplify your code.

Usage

MaxoMacro.import_with_delegates generates public delegates for all functions on the source module.

defmodule Source do
  def hey(name), do: "Hey, #{name}!"
end

defmodule Target do
  require MaxoMacro
  MaxoMacro.import_with_delegates(Source)
end
Target.hey("Joe")
# => Hey, Joe!

Installation

The package can be installed by adding maxo_macro to your list of dependencies in mix.exs:

def deps do
  [
    {:maxo_macro, "~> 0.1"}
  ]
end

The docs can be found at https://hexdocs.pm/maxo_macro.

About

MaxoMacro provides useful macros to simplify your code

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published