Current section
Files
Jump to
Current section
Files
lib/export/helpers.ex
defmodule Export.Helpers do
@moduledoc false
def convert_options(options) do
options |> Enum.map(fn (opt)->
case opt do
{key, other_options} when other_options |> is_list ->
{key, other_options |> Enum.map(fn ({key, value}) ->
{key |> Atom.to_char_list, value |> String.to_char_list}
end)}
{key, value} when value |> is_bitstring ->
{key, value |> String.to_char_list}
_ -> opt
end
end)
end
end