Gimme

Enum.each(["key", :key], fn key ->
  Enum.each([%{key: true}, %{"key" => true}], fn map ->
    assert Gimme.dat(map, key)
  end)
end)

Installation

If available in Hex, the package can be installed by adding gimme to your list of dependencies in mix.exs:

def deps do
  [
    {:gimme, "~> 0.1.0"}
  ]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/gimme.