Packages

Provides a set of useful guards to reduce boilerplate code

Current section

Files

Jump to
bottle lib bottle.ex
Raw

lib/bottle.ex

defmodule Bottle do
@moduledoc """
Provides custom guards to avoid boilerplate code
"""
@doc """
Calling `use Bottle` will import all the guards into your context
"""
defmacro __using__(opts \\ []) do
quote do
import Bottle.Binary, unquote(opts)
import Bottle.List, unquote(opts)
import Bottle.Number, unquote(opts)
import Bottle.Map, unquote(opts)
end
end
end