Current section

Files

Jump to
honeybadger lib honeybadger utils.ex
Raw

lib/honeybadger/utils.ex

defmodule Honeybadger.Utils do
@moduledoc """
Assorted helper functions used through out the Honeybadger package
"""
@doc """
Internally all modules are prefixed with Elixir. This function removes the
Elixir prefix from the module when it is converted to a string.
"""
def strip_elixir_prefix(module) do
module
|> Atom.to_string
|> String.split(".")
|> tl
|> Enum.join(".")
end
end