README.md

# DefaultArgs

Simple check for function defaults.

# How To Use

Make sure you `use`, `require` or `import` DefaultArgs. Wrap the module argument you want to check with the `default` macro. If the module cannot be loaded, then an `ArgumentError` is raised.

```
defmodule Foo do
  def bar(http_client // default(MyHttpClient)) do
    # work
  end
end

```


## Installation

If [available in Hex](https://hex.pm/docs/publish), the package can be installed as:

  1. Add `default_args` to your list of dependencies in `mix.exs`:

    ```elixir
    def deps do
      [{:default_args, "~> 0.1.0"}]
    end
    ```