Helpers.get_slug
You're seeing just the function
get_slug
, go back to Helpers module for more information.
Specs
get_slug/1: extracts the slug from the provided URI argument and returns the path
Example
iex(1)> {:ok, slug} = Helpers.get_slug("https://github.com/kitplummer/xmpprails")
{:ok, "kitplummer/xmpprails"}
iex(2)> slug
"kitplummer/xmpprails"