Elixpath.stringify
You're seeing just the function
stringify
, go back to Elixpath module for more information.
Link to this function
stringify(path)
Specs
Converts Elixpath to string.
Also available via Kernel.to_string/1
.
This function is named stringify/1
to avoid name collision
with Kernel.to_string/1
when the entire module is imported.
Examples
iex> import Elixpath, only: [sigil_p: 2]
iex> path = ~p/.1.child..:decendant/u
#Elixpath<[elixpath_child: 1, elixpath_child: "child", elixpath_descendant: :decendant]>
iex> path |> to_string()
"[1].\"child\"..:decendant"
iex> "interpolation: #{~p/..1[*]..*/}"
"interpolation: ..[1].*..*"